Methods
__construct()
__construct(string $file, \Zend\Code\Annotation\AnnotationManager $annotationManager)
Parameters
$file
string
Exceptions
__toString()
__toString()
Inherited
inherited_from |
\Zend\Code\Scanner\TokenArrayScanner::__toString() |
inherited_from |
\Zend\Code\Scanner\FileScanner::__toString() |
clearCache()
clearCache() : void
Export
export($tokens)
Inherited
inherited_from |
\Zend\Code\Scanner\TokenArrayScanner::export() |
inherited_from |
\Zend\Code\Scanner\FileScanner::export() |
Parameters
$tokens
Return the class object from this scanner
getClass(int | string $className) : \Zend\Code\Scanner\ClassScanner
Parameters
$className
intstring
Exceptions
Returns
getClassNames()
getClassNames() : array
getClasses()
getClasses() : array
getFile()
getFile() : array | null | string
getFunctionNames()
getFunctionNames() : array
getFunctions()
getFunctions() : array
getIncludes()
getIncludes() : array
getNamespaces()
getNamespaces() : array
getUses()
getUses(null | string $namespace) : array | null
Parameters
$namespace
nullstring
Returns
array
null
Check for namespace
hasNamespace(string $namespace) : bool
Inherited
inherited_from |
\Zend\Code\Scanner\TokenArrayScanner::hasNamespace() |
inherited_from |
\Zend\Code\Scanner\FileScanner::hasNamespace() |
Parameters
$namespace
string
Returns
bool
getUsesNoScan()
getUsesNoScan(string $namespace) : null | array
Inherited
inherited_from |
\Zend\Code\Scanner\TokenArrayScanner::getUsesNoScan() |
inherited_from |
\Zend\Code\Scanner\FileScanner::getUsesNoScan() |
Parameters
$namespace
string
Exceptions
Returns
null
array
Scan
scan()
Inherited
inherited_from |
\Zend\Code\Scanner\TokenArrayScanner::scan() |
inherited_from |
\Zend\Code\Scanner\FileScanner::scan() |
Exceptions
Properties
$annotationManager
$annotationManager : \Zend\Code\Annotation\AnnotationManager
Inherited
inherited_from |
\Zend\Code\Scanner\TokenArrayScanner::$$annotationManager |
inherited_from |
\Zend\Code\Scanner\FileScanner::$$annotationManager |
$file
$file : string
Inherited
inherited_from |
\Zend\Code\Scanner\FileScanner::$$file |
$infos
$infos : array
Inherited
inherited_from |
\Zend\Code\Scanner\TokenArrayScanner::$$infos |
inherited_from |
\Zend\Code\Scanner\FileScanner::$$infos |
$isScanned
$isScanned : bool
Inherited
inherited_from |
\Zend\Code\Scanner\TokenArrayScanner::$$isScanned |
inherited_from |
\Zend\Code\Scanner\FileScanner::$$isScanned |
$tokens
$tokens : array
Inherited
inherited_from |
\Zend\Code\Scanner\TokenArrayScanner::$$tokens |
inherited_from |
\Zend\Code\Scanner\FileScanner::$$tokens |