Normalizes a {@see \BackedEnum} enumeration to a string or an integer.
- author Alexandre Daubois
CloneableFinalInstantiable
Constants |
public Symfony If true, will denormalize any invalid value into null. |
Methods |
public denormalize(?mixed $data, string $type, ?string $format = NULL, array $context = []) : ?mixed
|
public getSupportedTypes(?string $format) : array |
public normalize(?mixed $object, ?string $format = NULL, array $context = []) : string|int |
public supportsDenormalization(?mixed $data, string $type, ?string $format = NULL, array $context = []) : bool |
public supportsNormalization(?mixed $data, ?string $format = NULL, array $context = []) : bool |