| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 19 | class FilialsResponse implements ResponseInterface, \IteratorAggregate |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Количество филиалов |
||
| 23 | * |
||
| 24 | * @JMS\XmlAttribute() |
||
| 25 | * @JMS\Type("int") |
||
| 26 | */ |
||
| 27 | private int $count; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @JMS\Type("array<DalliSDK\Models\Filial>") |
||
| 31 | * @JMS\XmlList(inline = true, entry = "filials") |
||
| 32 | * @var Filial[] |
||
| 33 | */ |
||
| 34 | private array $items = []; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return \Traversable|Filial[] |
||
| 38 | */ |
||
| 39 | 1 | public function getIterator(): \ArrayIterator |
|
| 40 | { |
||
| 41 | 1 | return new \ArrayIterator($this->getItems()); |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return Filial[] |
||
| 46 | */ |
||
| 47 | 1 | public function getItems(): array |
|
| 48 | { |
||
| 49 | 1 | return $this->items; |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return int |
||
| 54 | */ |
||
| 55 | 1 | public function getCount(): int |
|
| 58 | } |
||
| 59 | } |
||
| 60 |