PHP Class Bravo3\Orm\Mappers\Annotation\AnnotationMapper

Inheritance: implements Bravo3\Orm\Mappers\MapperInterface
Afficher le fichier Open project: bravo3/orm Class Usage Examples

Protected Properties

Свойство Type Description
$metadata_cache Bravo3\Orm\Mappers\Metadata\Entity[]

Méthodes publiques

Méthode Description
__construct ( array $paths = [] )
addAnnotationPath ( string $namespace, string $path ) Adds a path to the annotation namespace autoloader
getEntityMetadata ( string | object $entity ) : Entity Get the metadata for an entity, including column information

Method Details

__construct() public méthode

public __construct ( array $paths = [] )
$paths array

addAnnotationPath() public méthode

Adds a path to the annotation namespace autoloader
public addAnnotationPath ( string $namespace, string $path )
$namespace string Base namespace (eg "Foo\Bar")
$path string Path to PSR-0 root folder (eg __DIR__."/../src/")

getEntityMetadata() public méthode

Get the metadata for an entity, including column information
public getEntityMetadata ( string | object $entity ) : Entity
$entity string | object Entity or class name of the entity
Résultat Bravo3\Orm\Mappers\Metadata\Entity

Property Details

$metadata_cache protected_oe property

protected Entity[],Bravo3\Orm\Mappers\Metadata $metadata_cache
Résultat Bravo3\Orm\Mappers\Metadata\Entity[]