FlattenException::
class => false,
];
} public function supportsNormalization(mixed
$data, string
$format = null, array
$context =
[]): bool
{ return $data instanceof FlattenException
&& ($context[Serializer::MESSENGER_SERIALIZATION_CONTEXT
] ?? false
);
} public function denormalize(mixed
$data, string
$type, string
$format = null, array
$context =
[]): FlattenException
{ $object =
new FlattenException();
$object->
setMessage($data['message'
]);
$object->
setCode($data['code'
]);
$object->
setStatusCode($data['status'
] ?? 500
);
$object->
setClass($data['class'
]);
$object->
setFile($data['file'
]);
$object->
setLine($data['line'
]);
$object->
setStatusText($data['status_text'
]);
$object->
setHeaders((array) $data['headers'
]);
if (isset($data['previous'
])) {