| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Json extends Message |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @return string |
||
| 9 | */ |
||
| 10 | public function newData() |
||
| 11 | { |
||
| 12 | return '{}'; |
||
| 13 | } |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Get the instance as an array. |
||
| 17 | * |
||
| 18 | * @return array |
||
| 19 | */ |
||
| 20 | public function toArray() |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param array $data |
||
| 27 | * |
||
| 28 | * @return self |
||
| 29 | */ |
||
| 30 | public function fromArray($data) |
||
| 35 |