Methods

__construct()

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

Parameters

$tokens

nullarray

__toString()

__toString() 

Export

export($tokens) 

Parameters

$tokens

getAnnotationManager()

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

Return the class object from this scanner

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

getClassNameInformation()

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

Parameters

$className

string

Returns

getClassNames()

getClassNames() : array

Returns

array

Get doc comment

getDocComment() : string

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

Returns

string

getFunctionNames()

getFunctionNames() : array

Returns

array

getFunctions()

getFunctions() : array

Returns

array

getIncludes()

getIncludes() : array

Returns

array

getNamespaces()

getNamespaces() : array

Returns

array

getUses()

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

Parameters

$namespace

nullstring

Returns

arraynull

Check for namespace

hasNamespace(string $namespace) : bool

Parameters

$namespace

string

Returns

bool

getUsesNoScan()

getUsesNoScan(string $namespace) : null | array

Parameters

$namespace

string

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Returns

nullarray

Scan

scan() 

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

Exceptions

\Zend\Code\Exception\RuntimeException

 Properties

 

$annotationManager

$annotationManager : \Zend\Code\Annotation\AnnotationManager

 

$docComment

$docComment : null

 

$infos

$infos : array

 

$isScanned

$isScanned : bool

 

$nameInformation

$nameInformation : \Zend\Code\NameInformation

 

$tokens

$tokens : array