Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize
Normalizes an object into a set of arrays/scalars
Signature
Parameters
$object
— object- object to normalize
$format
— string- format the normalization result will be encoded as
$context
— array- Context options for the normalizer
Returns
- array|scalar