class NewAnnotationDriver implements MappingDriver (View source)

Properties

static protected int[] $entityAnnotationClasses
protected AnnotationReader $reader The Annotation reader.
protected FileLocator $locator The file locator.
protected NamingStrategy $namingStrategy

Methods

__construct(AnnotationReader $reader, FileLocator $locator, NamingStrategy $namingStrategy)

Initializes a new AnnotationDriver that uses the given AnnotationReader for reading docblock annotations.

void
loadMetadataForClass(string $className, ClassMetadata $metadata, ClassMetadataBuildingContext $metadataBuildingContext)

Loads the metadata for the specified class into the provided container.

string[]
getAllClassNames()

Gets the names of all mapped classes known to this driver.

bool
isTransient(string $className)

Returns whether the class with the specified name should have its metadata loaded.

Details

__construct(AnnotationReader $reader, FileLocator $locator, NamingStrategy $namingStrategy)

Initializes a new AnnotationDriver that uses the given AnnotationReader for reading docblock annotations.

Parameters

AnnotationReader $reader The AnnotationReader to use, duck-typed.
FileLocator $locator A FileLocator or one/multiple paths where mapping documents can be found.
NamingStrategy $namingStrategy The NamingStrategy to use.

void loadMetadataForClass(string $className, ClassMetadata $metadata, ClassMetadataBuildingContext $metadataBuildingContext)

Loads the metadata for the specified class into the provided container.

Parameters

string $className
ClassMetadata $metadata
ClassMetadataBuildingContext $metadataBuildingContext

Return Value

void

string[] getAllClassNames()

Gets the names of all mapped classes known to this driver.

Return Value

string[] The names of all mapped classes known to this driver.

bool isTransient(string $className)

Returns whether the class with the specified name should have its metadata loaded.

This is only the case if it is either mapped as an Entity or a MappedSuperclass.

Parameters

string $className

Return Value

bool