Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class RoleValidator extends AbstractValidator |
||
20 | { |
||
21 | /** |
||
22 | * The parameter instance |
||
23 | * @var RoleParam<TEntity> |
||
24 | */ |
||
25 | protected RoleParam $param; |
||
26 | |||
27 | /** |
||
28 | * Create new instance |
||
29 | * @param RoleParam<TEntity> $param |
||
30 | * @param Lang $lang |
||
31 | */ |
||
32 | public function __construct(RoleParam $param, Lang $lang) |
||
33 | { |
||
34 | parent::__construct($lang); |
||
35 | $this->param = $param; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function setValidationData(): void |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function setValidationRules(): void |
||
64 |