Symfony\Component\Serializer\Serializer::denormalizeObject
Denormalizes data back into an object of the given class
Signature
private function denormalizeObject(mixed
$data,
[string
$class = null,
[string
$format = null,
array
$context]] )
Parameters
$data
—
mixed
- data to restore
$class
—
string
- the expected class to instantiate
$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 denormalization
Returns
Errors/Exceptions
-
LogicException
-
UnexpectedValueException