PHP Class Collective\Annotations\Database\Eloquent\Annotations\Scanner

Inheritance: extends Collective\Annotations\AnnotationScanner
Show file Open project: laravelcollective/annotations Class Usage Examples

Public Methods

Method Description
__construct ( array $scan ) : void Create a new event scanner instance.
getModelDefinitions ( ) : string Convert the scanned annotations into route definitions.

Protected Methods

Method Description
buildBinding ( string $binding, string $class ) : string Build the event listener for the class and method.
extendsEloquent ( ReflectionClass $class ) : boolean Determine if a class extends Eloquent.

Method Details

__construct() public method

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

buildBinding() protected method

Build the event listener for the class and method.
protected buildBinding ( string $binding, string $class ) : string
$binding string
$class string
return string

extendsEloquent() protected method

Determine if a class extends Eloquent.
protected extendsEloquent ( ReflectionClass $class ) : boolean
$class ReflectionClass
return boolean

getModelDefinitions() public method

Convert the scanned annotations into route definitions.
public getModelDefinitions ( ) : string
return string