46 lines
1,007 B
YAML
46 lines
1,007 B
YAML
|
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: []
|