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