1 | <?php |
||
13 | final class VerbNormalizer extends Normalizer |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | 40 | public function normalize($object, $format = null, array $context = array()) |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 85 | public function supportsNormalization($data, $format = null) |
|
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 42 | public function denormalize($data, $class, $format = null, array $context = array()) |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 87 | public function supportsDenormalization($data, $type, $format = null) |
|
65 | } |
||
66 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.