Total Complexity | 8 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class AcceptRejectUuidList extends AbstractCollection |
||
19 | { |
||
20 | 3 | public function findByUuidOrFail(string $uuid): AcceptRejectUuidItem |
|
21 | { |
||
22 | 3 | $found = $this->findByUuid($uuid); |
|
23 | 3 | if (null === $found) { |
|
24 | 1 | throw new OutOfRangeException(sprintf('UUID %s not found on result', $uuid)); |
|
25 | } |
||
26 | 2 | return $found; |
|
27 | } |
||
28 | |||
29 | 5 | public function findByUuid(string $uuid): ?AcceptRejectUuidItem |
|
37 | } |
||
38 | |||
39 | 9 | protected function createItemFromStdClass(stdClass $content): object |
|
58 |