| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function isAllowed( |
||
| 22 | Permission $permission, |
||
| 23 | StringLiteral $offerId, |
||
| 24 | StringLiteral $userId |
||
| 25 | ) { |
||
| 26 | if (!isset($this->mapping[(string)$permission])) { |
||
| 27 | return false; |
||
| 28 | } |
||
| 29 | |||
| 30 | return $this->mapping[(string)$permission]->isAllowed($permission, $offerId, $userId); |
||
| 31 | } |
||
| 32 | |||
| 48 |