| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class One implements AssertionInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var AssertionInterface[] |
||
| 16 | */ |
||
| 17 | private $asserts; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Check if all asserts are true |
||
| 21 | */ |
||
| 22 | public function __construct(AssertionInterface ...$asserts) |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Assert that all given assert are correct (AND logic) |
||
| 29 | * |
||
| 30 | * @param \Ecodev\Felix\Acl\Acl $acl |
||
| 31 | * @param RoleInterface $role |
||
| 32 | * @param ResourceInterface $resource |
||
| 33 | * @param string $privilege |
||
| 34 | * |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null) |
||
| 48 |