Expanded class hierarchy of Dummy
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'];
}
}
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:: |