You are here

class NormalizableTraversableDummy in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Tests/Fixtures/NormalizableTraversableDummy.php \Symfony\Component\Serializer\Tests\Fixtures\NormalizableTraversableDummy

Hierarchy

Expanded class hierarchy of NormalizableTraversableDummy

1 file declares its use of NormalizableTraversableDummy
SerializerTest.php in vendor/symfony/serializer/Tests/SerializerTest.php

File

vendor/symfony/serializer/Tests/Fixtures/NormalizableTraversableDummy.php, line 19

Namespace

Symfony\Component\Serializer\Tests\Fixtures
View source
class NormalizableTraversableDummy extends TraversableDummy implements NormalizableInterface, DenormalizableInterface {
  public function normalize(NormalizerInterface $normalizer, $format = null, array $context = array()) {
    return array(
      'foo' => 'normalizedFoo',
      'bar' => 'normalizedBar',
    );
  }
  public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = array()) {
    return array(
      'foo' => 'denormalizedFoo',
      'bar' => 'denormalizedBar',
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
NormalizableTraversableDummy::denormalize public function Denormalizes the object back from an array of scalars|arrays. Overrides DenormalizableInterface::denormalize
NormalizableTraversableDummy::normalize public function Normalizes the object into an array of scalars|arrays. Overrides NormalizableInterface::normalize
TraversableDummy::$bar public property
TraversableDummy::$foo public property
TraversableDummy::getIterator public function