| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 7 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null): bool |
|
| 33 | { |
||
| 34 | 7 | foreach ($this->asserts as $assert) { |
|
| 35 | 6 | if ($assert->assert($acl, $role, $resource, $privilege)) { |
|
| 36 | 4 | return true; |
|
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | 3 | return false; |
|
| 41 | } |
||
| 48 |