| 1 | <?php |
||
| 15 | class ResetPasswordRequestEvent extends Event |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var ResettablePasswordInterface |
||
| 19 | */ |
||
| 20 | private $user; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param ResettablePasswordInterface $user |
||
| 24 | */ |
||
| 25 | function __construct(ResettablePasswordInterface $user) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return ResettablePasswordInterface |
||
| 32 | */ |
||
| 33 | public function getUser() |
||
| 37 | } |
||
| 38 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.