W3cubDocs

/Symfony 4.1

ClassDiscriminatorFromClassMetadata

class ClassDiscriminatorFromClassMetadata implements ClassDiscriminatorResolverInterface

Methods

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

Details

__construct(ClassMetadataFactoryInterface $classMetadataFactory)

Parameters

ClassMetadataFactoryInterface $classMetadataFactory

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