Total Complexity | 5 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class Json |
||
9 | { |
||
10 | public $json_text; |
||
11 | public $json_array; |
||
12 | public $main_table_name = "main"; |
||
13 | |||
14 | /** |
||
15 | * Json constructor. |
||
16 | * |
||
17 | * @param string $json |
||
18 | */ |
||
19 | public function __construct(String $json) |
||
20 | { |
||
21 | $this->json_text = $json; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return mixed |
||
26 | */ |
||
27 | public function toArray() |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return mixed |
||
34 | */ |
||
35 | public function toObject() |
||
39 | } |
||
40 | |||
41 | |||
42 | /** |
||
43 | * @param $json |
||
44 | * @return object |
||
45 | */ |
||
46 | public function validate($json) |
||
56 |