| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class StdClassNormalizer implements NormalizerInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @param object $object |
||
| 19 | * @param null $format |
||
|
|
|||
| 20 | * @param array $context |
||
| 21 | * @return array |
||
| 22 | */ |
||
| 23 | public function normalize($object, $format = null, array $context = array()) |
||
| 24 | { |
||
| 25 | return get_object_vars($object); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param mixed $data |
||
| 30 | * @param null $format |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | public function supportsNormalization($data, $format = null) |
||
| 36 | } |
||
| 37 | } |
||
| 38 |