CoreFiles by mySites.guru
AfterJoomlaUpdateEvent.php58 lines, 1,220 bytes, from Joomla_5.4.2-Stable-Full_Package.zip
Raw History Compare with 5.4.1
md5
2aeae5e0024ad95514d648c1dfcc2ae6
sha1
c417cf5193d53a15de2b97c05a2fb1cd5af60a8e
sha256
5e6987ee185db0faf81a19b98bc670902c2a8a550aa96acf1fb3e0c4b50716e7
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Event\Extension;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Class for Joomla Update events
 *
 * @since  5.2.0
 */
class AfterJoomlaUpdateEvent extends AbstractJoomlaUpdateEvent
{
    /**
     * The argument names, in order expected by legacy plugins.
     *
     * @var array
     *
     * @since  5.2.0
     * @deprecated 5.2.0 will be removed in 7.0
     */
    protected $legacyArgumentsOrder = ['oldVersion'];

    /**
     * Pre-setter for the oldVersion argument.
     *
     * @param   ?string  $value  The value to set
     *
     * @return  string
     *
     * @since  5.2.0
     */
    protected function onSetOldVersion(?string $value): string
    {
        return $value ?? '';
    }

    /**
     * Getter for the oldVersion.
     *
     * @return  string
     *
     * @since  5.2.0
     */
    public function getOldVersion(): string
    {
        return $this->arguments['oldVersion'] ?? '';
    }
}

The same content is in 73 releases, Joomla 5.4.0-beta1 to 6.2.1-rc1. See them all, or every version of this file.