W3cubDocs

/Symfony 4.1

ClassDiscriminatorResolverInterface

interface ClassDiscriminatorResolverInterface

Knows how to get the class discriminator mapping for classes and objects.

Methods

ClassDiscriminatorMapping|null getMappingForClass(string $class)
ClassDiscriminatorMapping|null getMappingForMappedObject(object|string $object)
string|null getTypeForMappedObject(object|string $object)

Details

ClassDiscriminatorMapping|null getMappingForClass(string $class)

Parameters

string $class

Return Value

ClassDiscriminatorMapping|null

ClassDiscriminatorMapping|null getMappingForMappedObject(object|string $object)

Parameters

object|string $object

Return Value

ClassDiscriminatorMapping|null

string|null getTypeForMappedObject(object|string $object)

Parameters

object|string $object

Return Value

string|null