1 | <?php |
||
9 | class JsonEncoder |
||
10 | { |
||
11 | protected $depth = 512; |
||
12 | |||
13 | protected $options = 0; |
||
14 | |||
15 | protected $error; |
||
16 | |||
17 | public function __construct($options = 0, $depth = 512) |
||
24 | |||
25 | /** |
||
26 | * Returns the JSON representation of a value. |
||
27 | * |
||
28 | * @link http://php.net/manual/en/function.json-encode.php |
||
29 | * |
||
30 | * @param mixed $value The value being encoded. |
||
31 | * Can be any type except a resource. |
||
32 | * @return string |
||
33 | */ |
||
34 | public function encode($value) |
||
48 | } |
||
49 |