platform/api/symfony/Component/Serializer/Normalizer/DateTimeZoneNormalizer.yaml
2024-09-02 10:44:11 -07:00

58 lines
1.6 KiB
YAML

name: DateTimeZoneNormalizer
class_comment: null
dependencies:
- name: InvalidArgumentException
type: class
source: Symfony\Component\Serializer\Exception\InvalidArgumentException
- name: NotNormalizableValueException
type: class
source: Symfony\Component\Serializer\Exception\NotNormalizableValueException
properties: []
methods:
- name: normalize
visibility: public
parameters:
- name: object
- name: format
default: 'null'
- name: context
default: '[]'
comment: "# * Normalizes a {@see \\DateTimeZone} object to a timezone string.\n\
# *\n# * @author J\xE9r\xF4me Desjardins <jewome62@gmail.com>\n# */\n# final class\
\ DateTimeZoneNormalizer implements NormalizerInterface, DenormalizerInterface\n\
# {\n# public function getSupportedTypes(?string $format): array\n# {\n# return\
\ [\n# \\DateTimeZone::class => true,\n# ];\n# }\n# \n# /**\n# * @throws InvalidArgumentException"
- name: supportsNormalization
visibility: public
parameters:
- name: data
- name: format
default: 'null'
- name: context
default: '[]'
comment: null
- name: denormalize
visibility: public
parameters:
- name: data
- name: type
- name: format
default: 'null'
- name: context
default: '[]'
comment: '# * @throws NotNormalizableValueException'
- name: supportsDenormalization
visibility: public
parameters:
- name: data
- name: type
- name: format
default: 'null'
- name: context
default: '[]'
comment: null
traits:
- Symfony\Component\Serializer\Exception\InvalidArgumentException
- Symfony\Component\Serializer\Exception\NotNormalizableValueException
interfaces:
- NormalizerInterface