| 1 | <?php |
||
| 9 | class UnableToCreateUserEvent extends Event |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | const NAME = 'user.failed-creating'; |
||
| 15 | |||
| 16 | /** @var ApplicationUserId */ |
||
| 17 | private $userId; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var UndefinedApplicationUser |
||
| 21 | */ |
||
| 22 | private $user; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Constructor |
||
| 26 | * |
||
| 27 | * @param ApplicationUserId $userId |
||
| 28 | * @param UndefinedApplicationUser $user |
||
| 29 | */ |
||
| 30 | 6 | public function __construct( |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return ApplicationUserId |
||
| 42 | */ |
||
| 43 | 3 | public function getUserId() |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return UndefinedApplicationUser |
||
| 50 | */ |
||
| 51 | 3 | public function getUser() |
|
| 55 | } |
||
| 56 |