| 1 | <?php namespace Anomaly\UsersModule\User\Command; |
||
| 14 | class GetUser |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The user identifier. |
||
| 19 | * |
||
| 20 | * @var mixed |
||
| 21 | */ |
||
| 22 | protected $identifier; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Create a new GetUser instance. |
||
| 26 | * |
||
| 27 | * @param $identifier |
||
| 28 | */ |
||
| 29 | public function __construct($identifier) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Handle the command. |
||
| 36 | * |
||
| 37 | * @param UserRepositoryInterface $users |
||
| 38 | * @param Guard $auth |
||
| 39 | * @return \Anomaly\UsersModule\User\Contract\UserInterface|\Illuminate\Contracts\Auth\Authenticatable|null |
||
| 40 | */ |
||
| 41 | public function handle(UserRepositoryInterface $users, Guard $auth) |
||
| 61 | } |
||
| 62 |