12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace JMS\SerializerBundle\Tests\Fixtures;
- use JMS\SerializerBundle\Serializer\Normalizer\NormalizerInterface;
- class NoopNormalizer implements NormalizerInterface
- {
- /**
- * {@inheritdoc}
- */
- public function normalize($object, $format = null)
- {
- return array();
- }
- /**
- * {@inheritdoc}
- */
- public function denormalize($data, $class, $format = null)
- {
- throw new \BadMethodCallException('Not supported');
- }
- /**
- * {@inheritdoc}
- */
- public function supportsNormalization($data, $format = null)
- {
- return true;
- }
- /**
- * {@inheritdoc}
- */
- public function supportsDenormalization($data, $type, $format = null)
- {
- return false;
- }
- }
|