| Conditions | 6 |
| Paths | 8 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 6.0493 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | 25 | protected function serializeMultiChildProperties(): array |
|
| 18 | { |
||
| 19 | 25 | $data = []; |
|
| 20 | |||
| 21 | 25 | if ($this->data !== null && !empty($this->data)) { |
|
| 22 | $data['data'] = $this->data; |
||
| 23 | } |
||
| 24 | |||
| 25 | 25 | if ($this->item !== null) { |
|
| 26 | 1 | $data['item'] = $this->item; |
|
| 27 | } |
||
| 28 | |||
| 29 | 25 | if ($this->items !== null && !empty($this->items)) { |
|
| 30 | 1 | $data['items'] = $this->items; |
|
| 31 | } |
||
| 32 | |||
| 33 | 25 | return $data; |
|
| 34 | } |
||
| 36 |