Total Complexity | 5 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class GroupPolicy implements PolicyInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | const ATTRIBUTE_GROUPS = 'groups'; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | const GROUP_DEFAULT = 'default'; |
||
20 | |||
21 | /** |
||
22 | * @var string[] |
||
23 | */ |
||
24 | private $groups; |
||
25 | |||
26 | public function __construct(array $groups = [self::GROUP_DEFAULT]) |
||
29 | 5 | } |
|
30 | |||
31 | 5 | /** |
|
32 | 5 | * @param object|mixed $object |
|
33 | */ |
||
34 | public function isCompliant(DenormalizerContextInterface $context, $object): bool |
||
51 |