Copied!

Normalizes {@see Number} and {@see \GMP} to a string.

CloneableFinalInstantiable
Constants
public Symfony\Component\Serializer\Normalizer\DenormalizerInterface::COLLECT_DENORMALIZATION_ERRORS = 'collect_denormalization_errors'
Methods
public denormalize(?mixed $data, string $type, ?string $format = NULL, array $context = []) : BcMath\Number|GMP
 
  • throws \NotNormalizableValueException
public getSupportedTypes(?string $format) : array
public normalize(?mixed $data, ?string $format = NULL, array $context = []) : string
public supportsDenormalization(?mixed $data, string $type, ?string $format = NULL, array $context = []) : bool
public supportsNormalization(?mixed $data, ?string $format = NULL, array $context = []) : bool
Methods
private createNotNormalizableValueException(string $type, ?mixed $data, array $context, ?Throwable $previous = NULL) : Symfony\Component\Serializer\Exception\NotNormalizableValueException
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration