You are here

class Dummy in Zircon Profile 8

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

Hierarchy

Expanded class hierarchy of Dummy

1 file declares its use of Dummy
XmlEncoderTest.php in vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php

File

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

Namespace

Symfony\Component\Serializer\Tests\Fixtures
View source
class Dummy implements NormalizableInterface, DenormalizableInterface {
  public $foo;
  public $bar;
  public $baz;
  public $qux;
  public function normalize(NormalizerInterface $normalizer, $format = null, array $context = array()) {
    return array(
      'foo' => $this->foo,
      'bar' => $this->bar,
      'baz' => $this->baz,
      'qux' => $this->qux,
    );
  }
  public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = array()) {
    $this->foo = $data['foo'];
    $this->bar = $data['bar'];
    $this->baz = $data['baz'];
    $this->qux = $data['qux'];
  }

}

Members

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