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