| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 1 | public function load(Target $target, array $subjects, Service $service): Acl |
|
| 35 | { |
||
| 36 | 1 | $acls = $this->loadAll([$target], $subjects, $service); |
|
| 37 | 1 | if (!array_key_exists((string) $target, $acls)) { |
|
| 38 | throw new Exception\Unloadable("Could not load ACL for $target"); |
||
| 39 | } |
||
| 40 | 1 | return $acls[(string) $target]; |
|
| 41 | } |
||
| 42 | } |
||
| 43 |