interface ClassDiscriminatorResolverInterface

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

Methods

ClassDiscriminatorMapping|null
getMappingForClass(string $class)

No description

ClassDiscriminatorMapping|null
getMappingForMappedObject(object|string $object)

No description

string|null
getTypeForMappedObject(object|string $object)

No description

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