| @@ 65-73 (lines=9) @@ | ||
| 62 | /** |
|
| 63 | * @inheritdoc |
|
| 64 | */ |
|
| 65 | public function jsonSerialize() |
|
| 66 | { |
|
| 67 | $json = parent::jsonSerialize(); |
|
| 68 | $json['title'] = $this->title; |
|
| 69 | $json['payload'] = $this->payload; |
|
| 70 | $json['payment_summary'] = $this->paymentSummary; |
|
| 71 | ||
| 72 | return $json; |
|
| 73 | } |
|
| 74 | ||
| 75 | } |
|
| 76 | ||
| @@ 70-81 (lines=12) @@ | ||
| 67 | /** |
|
| 68 | * @inheritdoc |
|
| 69 | */ |
|
| 70 | public function jsonSerialize() |
|
| 71 | { |
|
| 72 | $json = parent::jsonSerialize(); |
|
| 73 | $json['title'] = $this->title; |
|
| 74 | $json['payload'] = $this->payload; |
|
| 75 | ||
| 76 | if(!empty($this->image_url)) { |
|
| 77 | $json['image_url'] = $this->image_url; |
|
| 78 | } |
|
| 79 | ||
| 80 | return $json; |
|
| 81 | } |
|
| 82 | } |
|
| 83 | ||