| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class midcom_helper_exporter_json extends midcom_helper_exporter |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Make JSON out of an array. |
||
| 18 | * |
||
| 19 | * @param array $array |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | 1 | public function array2data(array $array) : string |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Make an array out of some JSON |
||
| 34 | * |
||
| 35 | * @param string $data |
||
| 36 | * @return array with attribute => key values |
||
| 37 | */ |
||
| 38 | 1 | public function data2array(string $data) : array |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Make JSON out of an object |
||
| 45 | * |
||
| 46 | * @param midcom_core_dbaobject $object |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | 1 | public function object2data($object) : string |
|
| 55 |