Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
50 | public function toArray() : array |
||
51 | { |
||
52 | $result = [ |
||
53 | 'summary' => $this->summary, |
||
54 | 'description' => $this->description, |
||
55 | 'value' => $this->extendedValue ?? $this->value, |
||
56 | ]; |
||
57 | |||
58 | if (isset($this->externalValue)) { |
||
59 | $result['externalValue'] = $this->externalValue; |
||
60 | } |
||
61 | |||
62 | return $result; |
||
63 | } |
||
65 |