Copied!

Normalizes a {@see \DateTimeZone} object to a timezone string.

CloneableInstantiable
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 = []) : DateTimeZone
 
  • throws \NotNormalizableValueException
public getSupportedTypes(?string $format) : array
public hasCacheableSupportsMethod() : bool
 
  • deprecated since Symfony 6.3, use "getSupportedTypes()" instead
public normalize(?mixed $object, ?string $format = NULL, array $context = []) : string
 
  • throws \InvalidArgumentException
public supportsDenormalization(?mixed $data, string $type, ?string $format = NULL) : bool
 
  • param array $context
public supportsNormalization(?mixed $data, ?string $format = NULL) : bool
 
  • param array $context
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration