Total Complexity | 5 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
27 | class IsUserHimselfVoter extends Voter |
||
28 | { |
||
29 | private const ATTRIBUTE = 'IS_USER_HIMSELF'; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 246 | protected function supports(string $attribute, mixed $subject): bool |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 27 | protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token): bool |
|
49 |