Normalizer\NormalizableInterface (Component\Serializer)
Symfony\Component\Serializer\Normalizer\NormalizableInterface
interface NormalizableInterface
Defines the most basic interface a class must implement to be normalizable.
If a normalizer is registered for the class and it doesn't implement the Normalizable interfaces, the normalizer will be used instead.
Methods
array|string|bool|int|float|null | normalize(NormalizerInterface $normalizer, string|null $format = null, array $context = array()) Normalizes the object into an array of scalars|arrays. |
Details
public array|string|bool|int|float|null normalize(NormalizerInterface $normalizer, string|null $format = null, array $context = array())
Normalizes the object into an array of scalars|arrays.
It is important to understand that the normalize() call should normalize recursively all child objects of the implementor.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Serializer/Normalizer/NormalizableInterface.html