| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 90% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class GetPendingResult extends AbstractResult |
||
| 11 | { |
||
| 12 | /** @var string[] */ |
||
| 13 | private $uuids; |
||
| 14 | |||
| 15 | 4 | public function __construct(stdClass $data) |
|
| 16 | { |
||
| 17 | 4 | parent::__construct($data, 'get_pendingResult'); |
|
| 18 | 4 | $items = $this->findInDescendent($data, 'get_pendingResult', 'uuids', 'string') ?? []; |
|
| 19 | 4 | if (! is_array($items)) { |
|
| 20 | $items = []; |
||
| 21 | } |
||
| 22 | 4 | $this->uuids = $items; |
|
| 23 | } |
||
| 24 | |||
| 25 | /** @return string[] */ |
||
| 26 | 3 | public function uuids(): array |
|
| 29 | } |
||
| 30 | |||
| 31 | 3 | public function error(): string |
|
| 36 |