Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class ArrayConverter |
||
14 | { |
||
15 | /** |
||
16 | * @param $array |
||
17 | * @return mixed |
||
18 | */ |
||
19 | public static function convertToObjectArray($array) |
||
20 | { |
||
21 | return json_decode(json_encode($array)); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param $array |
||
26 | * @return mixed |
||
27 | */ |
||
28 | public static function convertToPlainArray($array) |
||
31 | } |
||
32 | } |
||
33 |