Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
19 | final class Jsoner |
||
20 | { |
||
21 | /** |
||
22 | * @param bool $encode Encode the value into JSON. |
||
23 | * @param bool $validate Check that $value is a valid JSON string if the $encode parameter is false. |
||
24 | * |
||
25 | * @throws BuilderException|\JsonException |
||
26 | */ |
||
27 | public static function toJson(mixed $value, bool $encode = true, bool $validate = true): string |
||
42 |