Methods

Constructor

__construct(array | null $file, \Zend\Code\Annotation\AnnotationManager $annotationManager) 

Parameters

$file

arraynull

Exceptions

\Zend\Code\Exception\InvalidArgumentException

__toString()

__toString() 
Inherited

inherited_from \Zend\Code\Scanner\TokenArrayScanner::__toString()
inherited_from \Zend\Code\Scanner\FileScanner::__toString()

Clear cache

clearCache() : void

export()

export($tokens) 
Inherited

inherited_from \Zend\Code\Scanner\TokenArrayScanner::export()
inherited_from \Zend\Code\Scanner\FileScanner::export()

Parameters

$tokens

Get annotation manager

getAnnotationManager() : \Zend\Code\Annotation\AnnotationManager

Get class

getClass(int | string $className) : \Zend\Code\Scanner\ClassScanner

Parameters

$className

intstring

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Returns

Get class name information

getClassNameInformation(string $className) : bool | null | \Zend\Code\NameInformation

Parameters

$className

string

Returns

Get class names

getClassNames() : array

Returns

array

Get classes

getClasses() : string[]

Returns

string[]

Get doc comment

getDocComment() : null | string

Returns

nullstring

Get file

getFile() : array | null | string

Returns

arraynullstring

Get function names

getFunctionNames() : string[]

Returns

string[]

Get functions

getFunctions() : string[]

Returns

string[]

Get includes

getIncludes() 

Get namespaces

getNamespaces() : string[]

Returns

string[]

Get uses

getUses(null | string $namespace) : array | null

Parameters

$namespace

nullstring

Returns

arraynull

getUsesNoScan()

getUsesNoScan($namespace) 
Inherited

inherited_from \Zend\Code\Scanner\TokenArrayScanner::getUsesNoScan()
inherited_from \Zend\Code\Scanner\FileScanner::getUsesNoScan()

Parameters

$namespace

scan()

scan() 
Inherited

inherited_from \Zend\Code\Scanner\TokenArrayScanner::scan()
inherited_from \Zend\Code\Scanner\FileScanner::scan()

 Properties

 

$annotationManager

$annotationManager : \Zend\Code\Annotation\AnnotationManager
Inherited

inherited_from \Zend\Code\Scanner\TokenArrayScanner::$$annotationManager
inherited_from \Zend\Code\Scanner\FileScanner::$$annotationManager
 

$cache

$cache : array

 

$docComment

$docComment : null
Inherited

inherited_from \Zend\Code\Scanner\TokenArrayScanner::$$docComment
inherited_from \Zend\Code\Scanner\FileScanner::$$docComment
 

$file

$file : string
Inherited

inherited_from \Zend\Code\Scanner\FileScanner::$$file
 

$fileScanner

$fileScanner : null | \Zend\Code\Scanner\FileScanner

 

$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
 

$nameInformation

$nameInformation : \Zend\Code\NameInformation
Inherited

inherited_from \Zend\Code\Scanner\TokenArrayScanner::$$nameInformation
inherited_from \Zend\Code\Scanner\FileScanner::$$nameInformation
 

$tokens

$tokens : array
Inherited

inherited_from \Zend\Code\Scanner\TokenArrayScanner::$$tokens
inherited_from \Zend\Code\Scanner\FileScanner::$$tokens