| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | abstract class AbstractResponse |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @param string $json |
||
| 24 | * |
||
| 25 | * @return mixed |
||
| 26 | */ |
||
| 27 | public static function fromJson(string $json) |
||
| 28 | { |
||
| 29 | $object = new static(); |
||
| 30 | |||
| 31 | $serializer = SerializerBuilder::create()->build(); |
||
| 32 | |||
| 33 | return $serializer->deserialize($json, get_class($object), 'json'); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $string |
||
| 38 | * |
||
| 39 | * @return string|string[] |
||
| 40 | */ |
||
| 41 | protected static function toCamelCase(string $string) |
||
| 44 | } |
||
| 45 | } |
||
| 46 |