| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class TrackingResponse implements \IteratorAggregate |
||
| 17 | { |
||
| 18 | use ErrorAware; |
||
|
|
|||
| 19 | |||
| 20 | /** @var Error|null */ |
||
| 21 | private $error; |
||
| 22 | |||
| 23 | /** @var ItemsWrapper */ |
||
| 24 | private $value; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Дата и время формирования билета по MSK (UTC+3). |
||
| 28 | * |
||
| 29 | * @return \DateTimeImmutable |
||
| 30 | */ |
||
| 31 | 1 | public function getPreparedAt(): \DateTimeImmutable |
|
| 32 | { |
||
| 33 | 1 | return $this->value->getPreparedAt(); |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Список почтовых отправлений. |
||
| 38 | * |
||
| 39 | * @return Item[] |
||
| 40 | */ |
||
| 41 | 1 | public function getItems() |
|
| 44 | } |
||
| 45 | |||
| 46 | 1 | public function getIterator() |
|
| 55 |