| 1 | <?php |
||
| 9 | class Users implements EventListenerInterface |
||
| 10 | { |
||
| 11 | use MailerAwareTrait; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * ImplementedEvents method. |
||
| 15 | * |
||
| 16 | * @return array |
||
| 17 | */ |
||
| 18 | public function implementedEvents() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * An user failed to login. |
||
| 27 | * |
||
| 28 | * @param Event $event The event that was fired. |
||
| 29 | * |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | public function usersLoginFailed(Event $event) |
||
| 56 | } |
||
| 57 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: