Total Complexity | 5 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class Item implements \IteratorAggregate |
||
17 | { |
||
18 | use ErrorAware; |
||
|
|||
19 | |||
20 | /** @var Error|null */ |
||
21 | private $Error; |
||
22 | |||
23 | /** @var string */ |
||
24 | private $Barcode; |
||
25 | |||
26 | /** @var Operation[] */ |
||
27 | private $Operation; |
||
28 | |||
29 | /** |
||
30 | * Список операций над постовым отправлением. |
||
31 | * |
||
32 | * @return Operation[] |
||
33 | */ |
||
34 | public function getOperations() |
||
35 | { |
||
36 | return $this->Operation; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Идентификатор (ШПИ) почтового отправления (Barcode). |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getBarcode(): string |
||
45 | { |
||
46 | return $this->Barcode; |
||
47 | } |
||
48 | |||
49 | public function isFound(): bool |
||
50 | { |
||
51 | return (bool) count($this->Operation); |
||
52 | } |
||
53 | |||
54 | public function getIterator() |
||
59 | } |
||
60 | })(); |
||
61 | } |
||
62 | } |
||
63 |