W3cubDocs

/Symfony 4.1

ClassDiscriminatorMapping

class ClassDiscriminatorMapping

Methods

__construct(string $typeProperty, array $typesMapping = array())
string getTypeProperty()
string|null getClassForType(string $type)
string|null getMappedObjectType(object|string $object)
array getTypesMapping()

Details

__construct(string $typeProperty, array $typesMapping = array())

Parameters

string $typeProperty
array $typesMapping

string getTypeProperty()

Return Value

string

string|null getClassForType(string $type)

Parameters

string $type

Return Value

string|null

string|null getMappedObjectType(object|string $object)

Parameters

object|string $object

Return Value

string|null

array getTypesMapping()

Return Value

array

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Serializer/Mapping/ClassDiscriminatorMapping.html