| 1 | <?php namespace Anomaly\UsersModule\User\Command; |
||
| 16 | class CheckUserRole implements SelfHandling |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The role identifier. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $identifier; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Create a new CheckUserRole instance. |
||
| 28 | * |
||
| 29 | * @param $identifier |
||
| 30 | */ |
||
| 31 | public function __construct($identifier) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Handle the command. |
||
| 38 | * |
||
| 39 | * @param RoleRepositoryInterface $roles |
||
| 40 | * @param Guard $guard |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function handle(RoleRepositoryInterface $roles, Guard $guard) |
||
| 60 | } |
||
| 61 |