| Conditions | 4 |
| Paths | 8 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function jsonSerialize() |
||
| 47 | { |
||
| 48 | $data = new \ArrayObject(); |
||
| 49 | |||
| 50 | if (null !== $this->primaryText) { |
||
| 51 | $data['primaryText'] = $this->primaryText; |
||
| 52 | } |
||
| 53 | if (null !== $this->secondaryText) { |
||
| 54 | $data['secondaryText'] = $this->secondaryText; |
||
| 55 | } |
||
| 56 | if (null !== $this->tertiaryText) { |
||
| 57 | $data['tertiaryText'] = $this->tertiaryText; |
||
| 58 | } |
||
| 59 | |||
| 60 | return $data; |
||
| 61 | } |
||
| 63 |