| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function jsonSerialize() |
||
| 44 | { |
||
| 45 | $data = [ |
||
| 46 | '$schema' => $this->getSchema(), |
||
| 47 | 'type' => get_class($this), |
||
| 48 | 'domain_id' => $this->getDomainId()->getValue(), |
||
| 49 | ]; |
||
| 50 | $payload = $this->getPayload(); |
||
| 51 | if (null !== $payload) { |
||
| 52 | $data['payload'] = $payload; |
||
| 53 | } |
||
| 54 | |||
| 55 | return $data; |
||
| 56 | } |
||
| 57 | } |
||
| 58 |