TestNormalizer.php 813 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Serializer\Tests\Normalizer;
  11. use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
  12. /**
  13. * Provides a test Normalizer which only implements the NormalizerInterface.
  14. *
  15. * @author Lin Clark <lin@lin-clark.com>
  16. */
  17. class TestNormalizer implements NormalizerInterface
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public function normalize($object, $format = null, array $context = array())
  23. {
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function supportsNormalization($data, $format = null)
  29. {
  30. return true;
  31. }
  32. }