| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | trait Serializable |
||
| 17 | { |
||
| 18 | /** @inheritDoc */ |
||
| 19 | abstract public function toArray(): array; |
||
| 20 | |||
| 21 | /** Recursively serialize Arrayables */ |
||
| 22 | public function arraySerialize(): array |
||
| 25 | } |
||
| 26 | |||
| 27 | /** @inheritDoc */ |
||
| 28 | public function jsonSerialize(): array |
||
| 29 | { |
||
| 30 | return $this->arraySerialize(); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** @param int $options */ |
||
| 34 | public function toJson($options = 0): string |
||
| 37 | } |
||
| 38 | } |
||
| 39 |