Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class ServicesResponse implements ResponseInterface, \IteratorAggregate |
||
20 | { |
||
21 | /** |
||
22 | * @JMS\Type("array<DalliSDK\Models\Service>") |
||
23 | * @JMS\XmlList(inline = true, entry = "service") |
||
24 | * @var Service[] |
||
25 | */ |
||
26 | private array $items = []; |
||
27 | |||
28 | /** |
||
29 | * @return \Traversable|Service[] |
||
30 | */ |
||
31 | 1 | public function getIterator(): \ArrayIterator |
|
32 | { |
||
33 | 1 | return new \ArrayIterator($this->getItems()); |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return Service[] |
||
38 | */ |
||
39 | 2 | public function getItems(): array |
|
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return Service|bool |
||
46 | */ |
||
47 | 1 | public function filterByServiceCode(int $code) |
|
51 | 1 | })); |
|
52 | } |
||
54 |