/**
* Reverse transforms a value if a model transformer is set.
*
* @throws TransformationFailedException If the value cannot be transformed to "model" format
*/
private function normToModel(mixed
$value): mixed
{ try { $transformers =
$this->config->
getModelTransformers();
for ($i = \
count($transformers) - 1;
$i >= 0; --
$i) { $value =
$transformers[$i]->
reverseTransform($value);
} } catch (TransformationFailedException
$exception) { throw new TransformationFailedException(sprintf('Unable to reverse value for property path "%s": ',
$this->
getPropertyPath()).
$exception->
getMessage(),
$exception->
getCode(),
$exception,
$exception->
getInvalidMessage(),
$exception->
getInvalidMessageParameters());
} return $value;
} /**
* Transforms the value if a view transformer is set.
*
* @throws TransformationFailedException If the normalized value cannot be transformed to "view" format
*/