| Conditions | 5 |
| Paths | 8 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 21 | 7 | public function jsonSerialize(): array |
|
| 22 | { |
||
| 23 | 7 | $data = []; |
|
| 24 | 7 | if ($this->lang !== null) { |
|
| 25 | 3 | $data['lang'] = $this->lang; |
|
| 26 | } |
||
| 27 | 7 | if ($this->layoutDirection !== null) { |
|
| 28 | 3 | $data['layoutDirection'] = $this->layoutDirection->value; |
|
| 29 | } |
||
| 30 | 7 | if ($this->parameters !== null && count($this->parameters) > 0) { |
|
| 31 | 4 | $data['parameters'] = $this->parameters; |
|
| 32 | } |
||
| 33 | |||
| 34 | 7 | return $data; |
|
| 35 | } |
||
| 37 |