| 1 | <?php |
||
| 10 | class UserRegisteredEvent extends Event |
||
|
|
|||
| 11 | { |
||
| 12 | const NAME = 'user.registered'; |
||
| 13 | const TYPE_DEFAULT_REGISTRATION = 'default'; |
||
| 14 | |||
| 15 | protected $user; |
||
| 16 | protected $type; |
||
| 17 | |||
| 18 | 2 | public function __construct(User $user, string $type = self::TYPE_DEFAULT_REGISTRATION) |
|
| 23 | |||
| 24 | 2 | public function getUser(): User |
|
| 28 | |||
| 29 | public function getRegistrationType(): string |
||
| 33 | } |
||
| 34 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.