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