api/symfony/Component/Serializer/Attribute/DiscriminatorMap.yaml

46 lines
1,007 B
YAML
Raw Permalink Normal View History

2024-09-26 09:03:21 +00:00
name: DiscriminatorMap
class_comment: null
dependencies:
- name: InvalidArgumentException
type: class
source: Symfony\Component\Serializer\Exception\InvalidArgumentException
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: typeProperty
- name: mapping
comment: '# * @author Samuel Roze <samuel.roze@gmail.com>
# */
# #[\Attribute(\Attribute::TARGET_CLASS)]
# class DiscriminatorMap
# {
# /**
# * @param string $typeProperty The property holding the
type discriminator
# * @param array<string, class-string> $mapping The mapping between types
and classes (i.e. [''admin_user'' => AdminUser::class])
# *
# * @throws InvalidArgumentException'
- name: getTypeProperty
visibility: public
parameters: []
comment: null
- name: getMapping
visibility: public
parameters: []
comment: null
traits:
- Symfony\Component\Serializer\Exception\InvalidArgumentException
interfaces: []