| Conditions | 3 |
| Paths | 4 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 5 | public function getJSONObject( string $defText = '', string $defTitle = '' ): array { |
|
| 16 | 5 | $parentArray = parent::getJSONObject( $defText, $defTitle ); |
|
| 17 | $array = [ |
||
| 18 | 5 | 'fillColor' => $this->hasFillColor() ? $this->getFillColor() : '#FF0000', |
|
| 19 | 5 | 'fillOpacity' => $this->hasFillOpacity() ? $this->getFillOpacity() : '0.5', |
|
| 20 | ]; |
||
| 21 | 5 | return array_merge( $parentArray, $array ); |
|
| 22 | } |
||
| 23 | |||
| 48 |