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