class Dummy in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Fixtures/Dummy.php \Symfony\Component\Serializer\Tests\Fixtures\Dummy
Hierarchy
- class \Symfony\Component\Serializer\Tests\Fixtures\Dummy implements DenormalizableInterface, NormalizableInterface
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\FixturesView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Dummy:: |
public | property | ||
Dummy:: |
public | property | ||
Dummy:: |
public | property | ||
Dummy:: |
public | property | ||
Dummy:: |
public | function |
Denormalizes the object back from an array of scalars|arrays. Overrides DenormalizableInterface:: |
|
Dummy:: |
public | function |
Normalizes the object into an array of scalars|arrays. Overrides NormalizableInterface:: |