Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
29 | 2 | public function toArray(): array |
|
30 | { |
||
31 | 2 | $result = ['type' => 'orc']; |
|
32 | |||
33 | 2 | if (!empty($this->flattenSpec)) { |
|
34 | 2 | $result['flattenSpec'] = $this->flattenSpec->toArray(); |
|
35 | } |
||
36 | |||
37 | 2 | if ($this->binaryAsString !== null) { |
|
38 | 2 | $result['binaryAsString'] = $this->binaryAsString; |
|
39 | } |
||
40 | |||
41 | 2 | return $result; |
|
42 | } |
||
43 | } |