Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | private function serialize(array $properties) |
||
15 | { |
||
16 | foreach ($properties as $key => $property){ |
||
17 | if(is_object($property)){ |
||
18 | $params[$this->camelToSnake($key)] = $this->serialize(get_object_vars($property)); |
||
19 | }else { |
||
20 | $params[$this->camelToSnake($key)] = $property; |
||
21 | } |
||
22 | } |
||
23 | return $params; |
||
|
|||
24 | } |
||
36 |