AnnotationScanner
extends AnnotationCollection
in package
implements
ScannerInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- $annotationManager : AnnotationManager
- $annotations : array<string|int, mixed>
- $docComment : string
- $isScanned : bool
- $nameInformation : NameInformation
- __construct() : AnnotationScanner
- hasAnnotation() : bool
- Checks if the collection has annotations for a class
- setNameInformation() : mixed
- scan() : mixed
- tokenize() : array<string|int, mixed>
Properties
$annotationManager
protected
AnnotationManager
$annotationManager
$annotations
protected
array<string|int, mixed>
$annotations
= []
$docComment
protected
string
$docComment
$isScanned
protected
bool
$isScanned
= false
$nameInformation
protected
NameInformation
$nameInformation
Methods
__construct()
public
__construct(AnnotationManager $annotationManager, string $docComment[, NameInformation $nameInformation = null ]) : AnnotationScanner
Parameters
- $annotationManager : AnnotationManager
- $docComment : string
- $nameInformation : NameInformation = null
Return values
AnnotationScanner —hasAnnotation()
Checks if the collection has annotations for a class
public
hasAnnotation(string $class) : bool
Parameters
- $class : string
Return values
bool —setNameInformation()
public
setNameInformation(NameInformation $nameInformation) : mixed
Parameters
- $nameInformation : NameInformation
Return values
mixed —scan()
protected
scan(array<string|int, mixed> $tokens) : mixed
Parameters
- $tokens : array<string|int, mixed>
Return values
mixed —tokenize()
protected
tokenize() : array<string|int, mixed>