| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class DelegatingAuthorizationChecker implements AuthorizationCheckerInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var \Traversable|AuthorizationCheckerInterface[] |
||
| 24 | */ |
||
| 25 | private $checkers; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param \Traversable|AuthorizationCheckerInterface[] $checkers |
||
| 29 | */ |
||
| 30 | 9 | public function __construct($checkers = []) |
|
| 31 | { |
||
| 32 | 9 | $this->checkers = $checkers; |
|
| 33 | 9 | } |
|
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | 6 | public function isGranted(TestInterface $test, RouteContextInterface $routeContext) |
|
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | 1 | public function supports(TestInterface $test) |
|
| 55 | } |
||
| 56 | } |
||
| 57 |