Methods

__construct()

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

Parameters

$tokens

nullarray

__toString()

__toString() 

export()

export($tokens) 

Parameters

$tokens

getAnnotationManager()

getAnnotationManager() 

Return the class object from this scanner

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

Get class name information

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

Parameters

$className

string

Returns

Get class names

getClassNames() : string[]

Returns

string[]

getDocComment()

getDocComment() 

todo Assignment of $this->docComment should probably be done in scan() and then $this->getDocComment() just retrieves it.

Get function names

getFunctionNames() : string[]

Returns

string[]

getFunctions()

getFunctions() 

getIncludes()

getIncludes() 

getNamespaces()

getNamespaces() 

Get uses

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

Parameters

$namespace

nullstring

Returns

arraynull

getUsesNoScan()

getUsesNoScan($namespace) 

Parameters

$namespace

scan()

scan() 

todo : $this->docComment should be assigned for valid docblock during the scan instead of $this->getDocComment() (starting with T_DOC_COMMENT case)

 Properties

 

$annotationManager

$annotationManager : \Zend\Code\Annotation\AnnotationManager

 

$docComment

$docComment : null

 

$infos

$infos : array

 

$isScanned

$isScanned : bool

 

$nameInformation

$nameInformation : \Zend\Code\NameInformation

 

$tokens

$tokens : array