| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function sub_details(): \Iterator { |
||
| 35 | $items = new \ArrayIterator(); |
||
| 36 | |||
| 37 | if (!$this->type === 'container') { |
||
|
|
|||
| 38 | return $items; |
||
| 39 | } |
||
| 40 | |||
| 41 | |||
| 42 | foreach ($this->value as $detail_group) { |
||
| 43 | foreach ($detail_group as $detail) { |
||
| 44 | $detail_obj = self::fromArray($detail); |
||
| 45 | $items[] = $detail_obj; |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | return $items; |
||
| 50 | } |
||
| 53 |