class Dummy

Hierarchy

Expanded class hierarchy of Dummy

1 file declares its use of Dummy
XmlEncoderTest.php in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php

File

drupal/core/vendor/symfony/serializer/Symfony/Component/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) {
    return array(
      'foo' => $this->foo,
      'bar' => $this->bar,
      'baz' => $this->baz,
      'qux' => $this->qux,
    );
  }
  public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null) {
    $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