1 | <?php |
||
11 | class AuthenticateUserEvent extends AbstractEvent |
||
12 | { |
||
13 | |||
14 | const CHECK = 'authenticate.check'; |
||
15 | const AUTHENTICATED = 'authenticate.authenticated'; |
||
16 | const FAILED = 'authenticate.failed'; |
||
17 | |||
18 | /** |
||
19 | * @var AuthenticationDataVO |
||
20 | */ |
||
21 | private $authenticationData; |
||
22 | |||
23 | /** |
||
24 | * @param AuthenticationDataVO $authentication |
||
25 | * @param string $eventName |
||
26 | */ |
||
27 | public function __construct(AuthenticationDataVO $authentication, string $eventName) |
||
28 | { |
||
29 | parent::__construct($eventName); |
||
30 | |||
31 | $this->authenticationData = $authentication; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return AuthenticationDataVO |
||
36 | */ |
||
37 | public function getAuthenticationData() : AuthenticationDataVO |
||
41 | } |
||
42 |