package Default
inherited_from \Zend\Code\Scanner\FileScanner

 Methods

__construct()

__construct(string $file, \Zend\Code\Annotation\AnnotationManager $annotationManager = null
inherited_from \Zend\Code\Scanner\FileScanner::__construct()

Parameters

$file

string

$annotationManager

\Zend\Code\Annotation\AnnotationManager

Exceptions

\Zend\Code\Exception\InvalidArgumentException

__construct()

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

Parameters

$tokens

nullarray

$annotationManager

null\Zend\Code\Annotation\AnnotationManager

__toString()

__toString() 
Inherited

clearCache()

clearCache() : void
Static

Export

export($tokens) 
InheritedStatic

Parameters

$tokens

getAnnotationManager()

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

Returns

\Zend\Code\Annotation\AnnotationManager

getAnnotationManager()

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

Returns

\Zend\Code\Annotation\AnnotationManager

getClass()

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

Parameters

$className

integerstring

Returns

\Zend\Code\Scanner\ClassScanner

Return the class object from this scanner

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

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

getClassNameInformation()

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

Parameters

$className

string

Returns

booleannull\Zend\Code\NameInformation

getClassNames()

getClassNames() : array

Returns

array

getClassNames()

getClassNames() : array
Inherited

Returns

array

getClasses()

getClasses() : array

Returns

array

getClasses()

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

Returns

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

getDocComment()

getDocComment() : null | string

Returns

nullstring

Get doc comment

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

Returns

string

getFile()

getFile() : array | null | string
inherited_from \Zend\Code\Scanner\FileScanner::getFile()

Returns

arraynullstring

getFile()

getFile() : string
Inherited

Returns

string

getFunctionNames()

getFunctionNames() : array

Returns

array

getFunctionNames()

getFunctionNames() : array
Inherited

Returns

array

getFunctions()

getFunctions() : array

Returns

array

getFunctions()

getFunctions() : array
Inherited

Returns

array

getIncludes()

getIncludes() : array

Returns

array

getIncludes()

getIncludes() : array
Inherited

Returns

array

getNamespaces()

getNamespaces() : array

Returns

array

getNamespaces()

getNamespaces() : array
Inherited

Returns

array

getUses()

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

Parameters

$namespace

nullstring

Returns

arraynull

getUses()

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

Parameters

$namespace

nullstring

Returns

arraynull

Check for namespace

hasNamespace(string $namespace) : boolean
Inherited

Parameters

$namespace

string

Returns

boolean

getUsesNoScan()

getUsesNoScan(string $namespace) : null | array
Inherited

Parameters

$namespace

string

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Returns

nullarray

Scan

scan() 
Inherited
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
 

$cache

$cache : array

Default

array()
Static
 

$docComment

$docComment : null

Default

null
 

$file

$file : string

Default

null
 

$fileScanner

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

Default

null
 

$infos

$infos : array

Default

array()
 

$isScanned

$isScanned : boolean

Default

false
 

$nameInformation

$nameInformation : \Zend\Code\NameInformation

Default

null
 

$tokens

$tokens : array

Default

array()