class TestDenormalizer

Provides a test Normalizer which only implements the DenormalizerInterface.

@author Lin Clark <lin@lin-clark.com>

Hierarchy

Expanded class hierarchy of TestDenormalizer

1 file declares its use of TestDenormalizer
SerializerTest.php in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Tests/SerializerTest.php

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Tests/Normalizer/TestDenormalizer.php, line 21

Namespace

Symfony\Component\Serializer\Tests\Normalizer
View source
class TestDenormalizer implements DenormalizerInterface {

  /**
   * {@inheritdoc}
   */
  public function denormalize($data, $class, $format = null, array $context = array()) {
  }

  /**
   * {@inheritdoc}
   */
  public function supportsDenormalization($data, $type, $format = null) {
    return true;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TestDenormalizer::denormalize public function Denormalizes data back into an object of the given class Overrides DenormalizerInterface::denormalize
TestDenormalizer::supportsDenormalization public function Checks whether the given class is supported for denormalization by this normalizer Overrides DenormalizerInterface::supportsDenormalization