Symfony\Component\Serializer\Normalizer\NormalizableInterface::normalize
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.
Signature
public function normalize(NormalizerInterface
$normalizer,
[string|null
$format = null,
array
$context] )
Parameters
$normalizer
— Symfony\Component\Serializer\Normalizer\NormalizerInterface- The normalizer is given so that you
can use it to normalize objects contained within this object. $format
— object- The format is optionally given to be able to normalize differently
based on different output formats. $context
— array- Options for normalizing this object
Returns
- array|scalar