| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Encoder |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param mixed $data |
||
| 11 | * @param int $options |
||
| 12 | * @param bool $readable |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | public static function toJson(mixed $data, int $options = 0, bool $readable = false): string |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param mixed $data |
||
| 25 | * @param int $inline |
||
| 26 | * @param int $indent |
||
| 27 | * @param int $flags |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public static function toYaml(mixed $data, int $inline = 16, int $indent = 4, int $flags = 0): string |
||
| 33 | } |
||
| 34 | } |