| 1 | <?php namespace Anomaly\UsersModule\Role\Command; |
||
| 13 | class GetRole |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The role identifier. |
||
| 18 | * |
||
| 19 | * @var mixed |
||
| 20 | */ |
||
| 21 | protected $identifier; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Create a new GetRole instance. |
||
| 25 | * |
||
| 26 | * @param $identifier |
||
| 27 | */ |
||
| 28 | public function __construct($identifier) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Handle the command. |
||
| 35 | * |
||
| 36 | * @param RoleRepositoryInterface $roles |
||
| 37 | * @return \Anomaly\Streams\Platform\Model\EloquentModel|\Anomaly\UsersModule\Role\Contract\RoleInterface|null |
||
| 38 | */ |
||
| 39 | public function handle(RoleRepositoryInterface $roles) |
||
| 51 | } |
||
| 52 |