| @@ 38-46 (lines=9) @@ | ||
| 35 | 'image', |
|
| 36 | ]; |
|
| 37 | ||
| 38 | public function toJsonArray() |
|
| 39 | { |
|
| 40 | return [ |
|
| 41 | 'title' => $this->get('title'), |
|
| 42 | 'description' => $this->get('description'), |
|
| 43 | 'url' => $this->get('url'), |
|
| 44 | 'picurl' => $this->get('image'), |
|
| 45 | ]; |
|
| 46 | } |
|
| 47 | ||
| 48 | public function toXmlArray() |
|
| 49 | { |
|
| @@ 48-56 (lines=9) @@ | ||
| 45 | ]; |
|
| 46 | } |
|
| 47 | ||
| 48 | public function toXmlArray() |
|
| 49 | { |
|
| 50 | return [ |
|
| 51 | 'Title' => $this->get('title'), |
|
| 52 | 'Description' => $this->get('description'), |
|
| 53 | 'Url' => $this->get('url'), |
|
| 54 | 'PicUrl' => $this->get('image'), |
|
| 55 | ]; |
|
| 56 | } |
|
| 57 | } |
|
| 58 | ||