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