PHP Class Adamgoose\Events\Annotations\Scanner

Afficher le fichier Open project: adamgoose/laravel-annotations Class Usage Examples

Protected Properties

Свойство Type Description
$scan array The classes to scan for annotations.

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

Create a new event scanner instance.
public __construct ( array $scan ) : void
$scan array
Résultat void

buildListener() protected méthode

Build the event listener for the class and method.
protected buildListener ( string $class, string $method, array $events ) : string
$class string
$method string
$events array
Résultat string

create() public static méthode

Create a new scanner instance.
public static create ( array $scan ) : static
$scan array
Résultat static

getClassesToScan() protected méthode

Get all of the ReflectionClass instances in the scan path.
protected getClassesToScan ( ) : array
Résultat array

getEventDefinitions() public méthode

Convert the scanned annotations into route definitions.
public getEventDefinitions ( ) : string
Résultat string

getReader() protected méthode

Get an annotation reader instance.
protected getReader ( ) : Doctrine\Common\Annotations\SimpleAnnotationReader
Résultat Doctrine\Common\Annotations\SimpleAnnotationReader

Property Details

$scan protected_oe property

The classes to scan for annotations.
protected array $scan
Résultat array