Total Complexity | 4 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
20 | class ActTransferReturnResponse implements ResponseInterface, \IteratorAggregate |
||
21 | { |
||
22 | /** |
||
23 | * @JMS\Type("array<DalliSDK\Models\TransferReturnAct>") |
||
24 | * @JMS\XmlList(inline = true, entry = "act") |
||
25 | * @var TransferReturnAct[] |
||
26 | */ |
||
27 | private array $items = []; |
||
28 | |||
29 | /** |
||
30 | * Код ошибки |
||
31 | * |
||
32 | * @JMS\XmlAttribute() |
||
33 | * @JMS\Type("int") |
||
34 | */ |
||
35 | private ?int $error = null; |
||
36 | |||
37 | /** |
||
38 | * Текст ошибки |
||
39 | * |
||
40 | * @JMS\XmlAttribute() |
||
41 | * @JMS\Type("string") |
||
42 | * @JMS\SerializedName("errormsg") |
||
43 | */ |
||
44 | private ?string $errorMsg = null; |
||
45 | |||
46 | /** |
||
47 | * @return \Traversable|TransferReturnAct[] |
||
48 | */ |
||
49 | 1 | public function getIterator(): \ArrayIterator |
|
50 | { |
||
51 | 1 | return new \ArrayIterator($this->getActs()); |
|
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return TransferReturnAct[] |
||
56 | */ |
||
57 | 2 | public function getActs(): array |
|
58 | { |
||
59 | 2 | return $this->items; |
|
60 | } |
||
61 | |||
62 | /** |
||
63 | * @return int|null |
||
64 | */ |
||
65 | 1 | public function getError(): ?int |
|
66 | { |
||
67 | 1 | return $this->error; |
|
68 | } |
||
69 | |||
70 | /** |
||
71 | * @return string|null |
||
72 | */ |
||
73 | 1 | public function getErrorMsg(): ?string |
|
76 | } |
||
77 | } |
||
78 |