class AnnotationDriver extends AnnotationDriver (View source)

The AnnotationDriver reads the mapping metadata from docblock annotations.

Properties

protected $entityAnnotationClasses

Methods

static 
registerAnnotationClasses()

Registers annotation classes to the common registry.

loadMetadataForClass($className, ClassMetadata $class)

{@inheritdoc}

create(array|string $paths = array(), Reader $reader = null)

Factory method for the Annotation Driver

Details

static registerAnnotationClasses()

Registers annotation classes to the common registry.

This method should be called when bootstrapping your application.

loadMetadataForClass($className, ClassMetadata $class)

{@inheritdoc}

Parameters

$className
ClassMetadata $class

static AnnotationDriver create(array|string $paths = array(), Reader $reader = null)

Factory method for the Annotation Driver

Parameters

array|string $paths
Reader $reader

Return Value

AnnotationDriver