package Default

 Methods

__construct()

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

Parameters

$tokens

nullarray

$annotationManager

null\Zend\Code\Annotation\AnnotationManager

__toString()

__toString() 

Export

export($tokens) 
Static

Parameters

$tokens

getAnnotationManager()

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

Returns

\Zend\Code\Annotation\AnnotationManager

Return the class object from this scanner

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

Parameters

$name

stringinteger

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Returns

\Zend\Code\Scanner\ClassScanner

getClassNameInformation()

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

Parameters

$className

string

Returns

booleannull\Zend\Code\NameInformation

getClassNames()

getClassNames() : array

Returns

array

getClasses()

getClasses() : array<mixed,\Zend\Code\Scanner\ClassScanner>

Returns

array<mixed,\Zend\Code\Scanner\ClassScanner>

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 = null) : array | null

Parameters

$namespace

nullstring

Returns

arraynull

Check for namespace

hasNamespace(string $namespace) : boolean

Parameters

$namespace

string

Returns

boolean

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

Default

null
 

$docComment

$docComment : null

Default

null
 

$infos

$infos : array

Default

array()
 

$isScanned

$isScanned : boolean

Default

false
 

$nameInformation

$nameInformation : \Zend\Code\NameInformation

Default

null
 

$tokens

$tokens : array

Default

array()