Total Complexity | 6 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
5 | class Json |
||
6 | { |
||
7 | private $value; |
||
8 | private $options = 0; |
||
9 | private $depth = 512; |
||
10 | |||
11 | /** |
||
12 | * Json constructor. |
||
13 | * @param $value |
||
14 | */ |
||
15 | public function __construct($value) |
||
16 | { |
||
17 | $this->value = $value; |
||
18 | } |
||
19 | |||
20 | public function addOption($option) |
||
21 | { |
||
22 | $this->options += $option; |
||
23 | return $this; |
||
24 | } |
||
25 | |||
26 | public function setDepth($depth) { |
||
29 | } |
||
30 | |||
31 | public function __toString() |
||
42 |