- md5
- e8465427604012996630fcc3e2bd2c83
- sha1
- 004ce0f0ec7e384a4e2514c7de44ed324a02cb96
- sha256
- 64e79f2e9af963000eb2b9221120906cd8bdd89ce789d169ba7b305809ebcf27
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
<?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
/**
* Class for User event.
* Example:
* new AuthorisationFailureEvent('onEventName', ['subject' => $authenticationResponseArray, 'options' => $options]);
*
* @since 5.0.0
*/
class AuthorisationFailureEvent 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 onSetSubject(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 onSetOptions(array $value): array
{
return $value;
}
/**
* Getter for the response.
*
* @return array
*
* @since 5.0.0
*/
public function getAuthenticationResponse(): 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 76 releases, Joomla 5.0.0-beta3 to 6.0.0-alpha3. See them all, or every version of this file.