Expanded class hierarchy of ScalarDummy
class ScalarDummy implements NormalizableInterface, DenormalizableInterface {
public $foo;
public $xmlFoo;
public function normalize(NormalizerInterface $normalizer, $format = null) {
return $format === 'xml' ? $this->xmlFoo : $this->foo;
}
public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null) {
if ($format === 'xml') {
$this->xmlFoo = $data;
}
else {
$this->foo = $data;
}
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ScalarDummy:: |
public | property | ||
ScalarDummy:: |
public | property | ||
ScalarDummy:: |
public | function |
Denormalizes the object back from an array of scalars|arrays. Overrides DenormalizableInterface:: |
|
ScalarDummy:: |
public | function |
Normalizes the object into an array of scalars|arrays. Overrides NormalizableInterface:: |