PHP 클래스 Adamgoose\Events\Annotations\Scanner

파일 보기 프로젝트 열기: adamgoose/laravel-annotations 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$scan array The classes to scan for annotations.

공개 메소드들

메소드 설명
__construct ( array $scan ) : void Create a new event scanner instance.
create ( array $scan ) : static Create a new scanner instance.
getEventDefinitions ( ) : string Convert the scanned annotations into route definitions.

보호된 메소드들

메소드 설명
buildListener ( string $class, string $method, array $events ) : string Build the event listener for the class and method.
getClassesToScan ( ) : array Get all of the ReflectionClass instances in the scan path.
getReader ( ) : Doctrine\Common\Annotations\SimpleAnnotationReader Get an annotation reader instance.

메소드 상세

__construct() 공개 메소드

Create a new event scanner instance.
public __construct ( array $scan ) : void
$scan array
리턴 void

buildListener() 보호된 메소드

Build the event listener for the class and method.
protected buildListener ( string $class, string $method, array $events ) : string
$class string
$method string
$events array
리턴 string

create() 공개 정적인 메소드

Create a new scanner instance.
public static create ( array $scan ) : static
$scan array
리턴 static

getClassesToScan() 보호된 메소드

Get all of the ReflectionClass instances in the scan path.
protected getClassesToScan ( ) : array
리턴 array

getEventDefinitions() 공개 메소드

Convert the scanned annotations into route definitions.
public getEventDefinitions ( ) : string
리턴 string

getReader() 보호된 메소드

Get an annotation reader instance.
protected getReader ( ) : Doctrine\Common\Annotations\SimpleAnnotationReader
리턴 Doctrine\Common\Annotations\SimpleAnnotationReader

프로퍼티 상세

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

The classes to scan for annotations.
protected array $scan
리턴 array