CoreFiles by mySites.guru
AbstractLogoutEvent.php84 lines, 1,644 bytes, from Joomla_5.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 5.0.0-beta1
md5
2116e03b0ae7e91af8390140b7905725
sha1
4931f35fb89397fecb9ac2f08d1937ca6b9be94b
sha256
1f73eb249714db3158c51749216ae42b9bce944dcd41926c11841191d4813a70
<?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\User;

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

/**
 * Base class for User logout event
 *
 * @since  5.0.0
 */
abstract class AbstractLogoutEvent extends UserEvent
{
    /**
     * The argument names, in order expected by legacy plugins.
     *
     * @var array
     *
     * @since  5.0.0
     * @deprecated 5.0 will be removed in 6.0
     */
    protected $legacyArgumentsOrder = ['subject', 'options'];

    /**
     * Setter for the subject argument.
     *
     * @param   array  $value  The value to set
     *
     * @return  array
     *
     * @since  5.0.0
     */
    protected function setSubject(array $value): array
    {
        return $value;
    }

    /**
     * Setter for the options argument.
     *
     * @param   array  $value  The value to set
     *
     * @return  array
     *
     * @since  5.0.0
     */
    protected function setOptions(array $value): array
    {
        return $value;
    }

    /**
     * Getter for the parameters.
     *
     * @return  array
     *
     * @since  5.0.0
     */
    public function getParameters(): array
    {
        return $this->arguments['subject'];
    }

    /**
     * Getter for the options.
     *
     * @return  array
     *
     * @since  5.0.0
     */
    public function getOptions(): array
    {
        return $this->arguments['options'] ?? [];
    }
}

The same content is in 3 releases, Joomla 5.0.0-alpha4 to 5.0.0-beta2. See them all, or every version of this file.