class ConstraintViolationListNormalizer implements NormalizerInterface, CacheableSupportsMethodInterface
A normalizer that normalizes a ConstraintViolationListInterface instance.
This Normalizer implements RFC7807 {@link https://tools.ietf.org/html/rfc7807}.
array|string|int|float|bool | normalize(mixed $object, string $format = null, array $context = array()) Normalizes an object into a set of arrays/scalars. | |
bool | supportsNormalization(mixed $data, string $format = null) Checks whether the given class is supported for normalization by this normalizer. | |
bool | hasCacheableSupportsMethod() |
Normalizes an object into a set of arrays/scalars.
mixed | $object | Object to normalize |
string | $format | Format the normalization result will be encoded as |
array | $context | Context options for the normalizer |
array|string|int|float|bool |
InvalidArgumentException | Occurs when the object given is not an attempted type for the normalizer |
CircularReferenceException | Occurs when the normalizer detects a circular reference when no circular reference handler can fix it |
LogicException | Occurs when the normalizer is not called in an expected context |
Checks whether the given class is supported for normalization by this normalizer.
mixed | $data | Data to normalize |
string | $format | The format being (de-)serialized from or into |
bool |
bool |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Serializer/Normalizer/ConstraintViolationListNormalizer.html