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

74 lines
2.1 KiB
YAML

name: ArrayDenormalizer
class_comment: '# * Denormalizes arrays of objects.
# *
# * @author Alexander M. Turek <me@derrabus.de>
# *
# * @final'
dependencies:
- name: LegacyType
type: class
source: Symfony\Component\PropertyInfo\Type
- name: BadMethodCallException
type: class
source: Symfony\Component\Serializer\Exception\BadMethodCallException
- name: InvalidArgumentException
type: class
source: Symfony\Component\Serializer\Exception\InvalidArgumentException
- name: NotNormalizableValueException
type: class
source: Symfony\Component\Serializer\Exception\NotNormalizableValueException
- name: Type
type: class
source: Symfony\Component\TypeInfo\Type
- name: UnionType
type: class
source: Symfony\Component\TypeInfo\Type\UnionType
- name: DenormalizerAwareTrait
type: class
source: DenormalizerAwareTrait
properties: []
methods:
- name: denormalize
visibility: public
parameters:
- name: data
- name: type
- name: format
default: 'null'
- name: context
default: '[]'
comment: "# * Denormalizes arrays of objects.\n# *\n# * @author Alexander M. Turek\
\ <me@derrabus.de>\n# *\n# * @final\n# */\n# class ArrayDenormalizer implements\
\ DenormalizerInterface, DenormalizerAwareInterface\n# {\n# use DenormalizerAwareTrait;\n\
# \n# public function getSupportedTypes(?string $format): array\n# {\n# return\
\ ['object' => null, '*' => false];\n# }\n# \n# /**\n# * @throws NotNormalizableValueException"
- name: supportsDenormalization
visibility: public
parameters:
- name: data
- name: type
- name: format
default: 'null'
- name: context
default: '[]'
comment: null
- name: validateKeyType
visibility: private
parameters:
- name: typeIdentifiers
- name: key
- name: path
comment: '# * @param list<string> $typeIdentifiers'
traits:
- Symfony\Component\Serializer\Exception\BadMethodCallException
- Symfony\Component\Serializer\Exception\InvalidArgumentException
- Symfony\Component\Serializer\Exception\NotNormalizableValueException
- Symfony\Component\TypeInfo\Type
- Symfony\Component\TypeInfo\Type\UnionType
- DenormalizerAwareTrait
interfaces:
- DenormalizerInterface