Symfony\Component\Serializer\Serializer::normalizeObject
Normalizes an object into a set of arrays/scalars
Signature
private function normalizeObject(
$object,
[string
$format = null,
array
$context] )
Parameters
$object
—
object
- object to normalize
$format
—
string
- format name, present to give the option to normalizers to act differently based on formats
$context
—
array
- The context data for this particular normalization
Returns
- array|scalar
Errors/Exceptions
-
LogicException
-
UnexpectedValueException