PHP 클래스 Bravo3\Orm\Mappers\Annotation\AnnotationMapper

상속: implements Bravo3\Orm\Mappers\MapperInterface
파일 보기 프로젝트 열기: bravo3/orm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$metadata_cache Bravo3\Orm\Mappers\Metadata\Entity[]

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

addAnnotationPath() 공개 메소드

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() 공개 메소드

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
리턴 Bravo3\Orm\Mappers\Metadata\Entity

프로퍼티 상세

$metadata_cache 보호되어 있는 프로퍼티

protected Entity[],Bravo3\Orm\Mappers\Metadata $metadata_cache
리턴 Bravo3\Orm\Mappers\Metadata\Entity[]