You are here

class TestDenormalizer in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Tests/Normalizer/TestDenormalizer.php \Symfony\Component\Serializer\Tests\Normalizer\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 vendor/symfony/serializer/Tests/SerializerTest.php

File

vendor/symfony/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