Conditions | 5 |
Paths | 16 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 5 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
55 | 1 | public function jsonSerialize() |
|
56 | { |
||
57 | 1 | $data = []; |
|
58 | |||
59 | 1 | if (null !== $this->title) { |
|
60 | 1 | $data['title'] = $this->title; |
|
61 | } |
||
62 | 1 | if (null !== $this->subtitle) { |
|
63 | 1 | $data['subtitle'] = $this->subtitle; |
|
64 | } |
||
65 | 1 | if (null !== $this->art) { |
|
66 | 1 | $data['art'] = $this->art; |
|
67 | } |
||
68 | 1 | if (null !== $this->backgroundImage) { |
|
69 | 1 | $data['backgroundImage'] = $this->backgroundImage; |
|
70 | } |
||
71 | |||
72 | 1 | return $data; |
|
73 | } |
||
75 |