| 1 | <?php namespace Anomaly\UsersModule\User\Command; |
||
| 14 | class StartUserActivation |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The user instance. |
||
| 19 | * |
||
| 20 | * @var UserInterface |
||
| 21 | */ |
||
| 22 | protected $user; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Create a new StartUserActivation instance. |
||
| 26 | * |
||
| 27 | * @param UserInterface $user |
||
| 28 | */ |
||
| 29 | function __construct(UserInterface $user) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Handle the command. |
||
| 36 | * |
||
| 37 | * @param UserRepositoryInterface $users |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | public function handle(UserRepositoryInterface $users) |
||
| 46 | } |
||
| 47 |
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.