Total Complexity | 6 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 87.5% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class RoleHasSpaceToAssign implements Rule |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @var PositionSettingRetrieval |
||
22 | */ |
||
23 | private $positionSettingRetrieval; |
||
24 | /** |
||
25 | * @var Authentication |
||
26 | */ |
||
27 | private $authentication; |
||
28 | /** |
||
29 | * @var Role |
||
30 | */ |
||
31 | private $roleRepository; |
||
32 | |||
33 | 7 | public function __construct(Authentication $authentication, PositionSettingRetrieval $positionSettingRetrieval, Role $roleRepository) |
|
34 | { |
||
35 | 7 | $this->positionSettingRetrieval = $positionSettingRetrieval; |
|
36 | 7 | $this->authentication = $authentication; |
|
37 | 7 | $this->roleRepository = $roleRepository; |
|
38 | 7 | } |
|
39 | |||
40 | /** |
||
41 | * @inheritDoc |
||
42 | */ |
||
43 | 7 | public function passes($attribute, $value) |
|
54 | } |
||
55 | |||
56 | 7 | protected function group() |
|
59 | } |
||
60 | |||
61 | /** |
||
62 | * @inheritDoc |
||
63 | */ |
||
64 | 1 | public function message() |
|
67 | } |
||
68 | } |