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.
array|string|int|float|bool | normalize(NormalizerInterface $normalizer, string|null $format = null, array $context = array()) Normalizes the object into an array of scalars|arrays. |
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.
NormalizerInterface | $normalizer | The normalizer is given so that you can use it to normalize objects contained within this object |
string|null | $format | The format is optionally given to be able to normalize differently based on different output formats |
array | $context | Options for normalizing this object |
array|string|int|float|bool |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Serializer/Normalizer/NormalizableInterface.html