| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 61 | public function jsonSerialize(): array |
||
| 62 | { |
||
| 63 | $json = parent::jsonSerialize(); |
||
| 64 | $json += [ |
||
| 65 | 'subtitle' => $this->subtitle, |
||
| 66 | 'quantity' => $this->quantity, |
||
| 67 | 'price' => $this->price, |
||
| 68 | 'currency' => $this->currency, |
||
| 69 | 'image_url' => $this->imageUrl, |
||
| 70 | ]; |
||
| 71 | |||
| 72 | return array_filter($json); |
||
| 73 | } |
||
| 74 | } |
||
| 75 |