| Total Complexity | 9 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 88.24% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class FeatureSecurity |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param AuthorizationCheckerInterface|null |
||
| 17 | */ |
||
| 18 | protected $context; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param AuthorizationCheckerInterface $context |
||
| 22 | */ |
||
| 23 | 12 | public function __construct(AuthorizationCheckerInterface $context = null) |
|
| 26 | 12 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param Feature $feature |
||
| 30 | * |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | 12 | public function isGranted(Feature $feature) |
|
| 64 |