| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3.009 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 3 | public function __construct(stdClass $data) |
|
| 16 | { |
||
| 17 | 3 | parent::__construct($data, 'report_uuidResult'); |
|
| 18 | 3 | $this->items = []; |
|
| 19 | |||
| 20 | 3 | $items = $this->findInDescendent($data, 'report_uuidResult', 'invoices', 'ReportUUID'); |
|
| 21 | 3 | if (! is_array($items)) { |
|
| 22 | $items = []; |
||
| 23 | } |
||
| 24 | 3 | foreach ($items as $item) { |
|
| 25 | 3 | $this->items[] = [ |
|
| 26 | 3 | 'date' => strval($item->date), |
|
| 27 | 3 | 'uuid' => strval($item->uuid), |
|
| 28 | 3 | ]; |
|
| 47 |