1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Core;
4:
5: interface Jsonable
6: {
7: /**
8: * Get a JSON representation of the object
9: *
10: * @param int-mask-of<\JSON_FORCE_OBJECT|\JSON_INVALID_UTF8_IGNORE|\JSON_INVALID_UTF8_SUBSTITUTE|\JSON_NUMERIC_CHECK|\JSON_PRESERVE_ZERO_FRACTION|\JSON_PRETTY_PRINT|\JSON_THROW_ON_ERROR|\JSON_UNESCAPED_SLASHES|\JSON_UNESCAPED_UNICODE> $flags Passed
11: * to {@see json_encode()}.
12: */
13: public function toJson(int $flags = 0): string;
14: }
15: