| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class IntervalsResponse implements ResponseInterface, \IteratorAggregate |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @JMS\Type("array<DalliSDK\Models\Interval>") |
||
| 22 | * @JMS\XmlList(inline = true, entry = "interval") |
||
| 23 | * @var Interval[] |
||
| 24 | */ |
||
| 25 | private array $items = []; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return \Traversable|Interval[] |
||
| 29 | */ |
||
| 30 | 3 | public function getIterator(): \ArrayIterator |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return Interval[] |
||
| 37 | */ |
||
| 38 | 4 | public function getItems(): array |
|
| 41 | } |
||
| 42 | |||
| 43 | 1 | public function getBasicType(): array |
|
| 44 | { |
||
| 45 | 1 | return array_filter($this->getItems(), function ($item) { |
|
| 46 | 1 | return $item->getType() == 'basic'; |
|
| 47 | 1 | }); |
|
| 48 | } |
||
| 49 | |||
| 50 | 1 | public function getClientType(): array |
|
| 54 | 1 | }); |
|
| 55 | } |
||
| 57 |