| @@ 48-57 (lines=10) @@ | ||
| 45 | /** |
|
| 46 | * @return array |
|
| 47 | */ |
|
| 48 | public function jsonSerialize() |
|
| 49 | { |
|
| 50 | return [ |
|
| 51 | 'title' => $this->getTitle(), |
|
| 52 | 'subtitle' => $this->getSubtitle(), |
|
| 53 | 'image_url' => $this->getImageUrl(), |
|
| 54 | 'buttons' => $this->button ? [$this->button] : null, |
|
| 55 | 'default_action' => $this->defaultAction, |
|
| 56 | ]; |
|
| 57 | } |
|
| 58 | } |
|
| 59 | ||
| @@ 55-64 (lines=10) @@ | ||
| 52 | /** |
|
| 53 | * @return array |
|
| 54 | */ |
|
| 55 | public function jsonSerialize() |
|
| 56 | { |
|
| 57 | return [ |
|
| 58 | 'title' => $this->getTitle(), |
|
| 59 | 'image_url' => $this->getImageUrl(), |
|
| 60 | 'subtitle' => $this->getSubtitle(), |
|
| 61 | 'buttons' => $this->buttons, |
|
| 62 | 'default_action' => $this->defaultAction, |
|
| 63 | ]; |
|
| 64 | } |
|
| 65 | } |
|
| 66 | ||