| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | trait JsonSerializableTrait |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @return array |
||
| 23 | * |
||
| 24 | * @internal |
||
| 25 | */ |
||
| 26 | public function __debugInfo(): array |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Returns class properties as an array. |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | abstract public function asArray(): array; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Specify data which should be serialized to JSON. |
||
| 40 | * |
||
| 41 | * Serializes the object to a value that can be serialized natively by `json_encode()`. |
||
| 42 | * |
||
| 43 | * @return array returns data which can be serialized by `json_encode()`, |
||
| 44 | * which is a value of any type other than a `resource` |
||
| 45 | * |
||
| 46 | * @see https://php.net/manual/en/jsonserializable.jsonserialize.php JsonSerializable::jsonSerialize |
||
| 47 | */ |
||
| 48 | public function jsonSerialize(): array |
||
| 53 |