| 1 | <?php |
||
| 10 | abstract class AbstractUserEvent extends Event |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var object |
||
| 14 | */ |
||
| 15 | private $user; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructor. |
||
| 19 | * |
||
| 20 | * @param object $user |
||
| 21 | */ |
||
| 22 | 12 | public function __construct($user = null) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Returns the user. |
||
| 29 | * |
||
| 30 | * @return object |
||
| 31 | */ |
||
| 32 | 6 | public function getUser() |
|
| 33 | { |
||
| 34 | 6 | return $this->user; |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Checks whether a user is available. |
||
| 39 | * |
||
| 40 | * @return bool |
||
| 41 | * |
||
| 42 | * @deprecated should be used in the `OnInvalidCredentialsEvent` only, will be removed from here in 2.0 |
||
| 43 | */ |
||
| 44 | public function isUserAvailable() |
||
| 48 | } |
||
| 49 |