package Default

 Methods

__construct()

__construct(array $classTokens, \Zend\Code\NameInformation|null $nameInformation = null) : \Zend\Code\Scanner\ClassScanner

Parameters

$classTokens

array

$nameInformation

\Zend\Code\NameInformationnull

Returns

\Zend\Code\Scanner\ClassScanner

__toString()

__toString() 

export()

export() 
Static

Get annotations

getAnnotations(\Zend\Code\Annotation\AnnotationManager $annotationManager) : \Zend\Code\Annotation\AnnotationCollection

Parameters

$annotationManager

\Zend\Code\Annotation\AnnotationManager

Returns

\Zend\Code\Annotation\AnnotationCollection

Return a single constant by given name or index of info

getConstant(string|integer $constantNameOrInfoIndex) : boolean | \Zend\Code\Scanner\ConstantScanner

Parameters

$constantNameOrInfoIndex

stringinteger

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Returns

boolean\Zend\Code\Scanner\ConstantScanner

Return a list of constant names

getConstantNames() : array

Returns

array

Return a list of constants

getConstants(boolean $namesOnly = true) : array | array<mixed,\Zend\Code\Scanner\ConstantScanner>

Parameters

$namesOnly

boolean

Set false to return instances of ConstantScanner

Returns

arrayarray<mixed,\Zend\Code\Scanner\ConstantScanner>

Return documentation block

getDocBlock() : false | \Zend\Code\Scanner\DocBlockScanner

Returns

false\Zend\Code\Scanner\DocBlockScanner

Return documentation comment

getDocComment() : null | string

Returns

nullstring

Return a list of interface names

getInterfaces() : array

Returns

array

Return number of last line

getLineEnd() : integer | null

Returns

integernull

Return number of first line

getLineStart() : integer | null

Returns

integernull

Return a single method by given name or index of info

getMethod(string|integer $methodNameOrInfoIndex) : \Zend\Code\Scanner\MethodScanner

Parameters

$methodNameOrInfoIndex

stringinteger

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Returns

\Zend\Code\Scanner\MethodScanner

Return a list of method names

getMethodNames() : array

Returns

array

Return a list of methods

getMethods() : array<mixed,\Zend\Code\Scanner\MethodScanner>

Returns

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

Return a name of class

getName() : null | string

Returns

nullstring

Return a name of parent class

getParentClass() : null | string

Returns

nullstring

Return a list of properties

getProperties() : array<mixed,\Zend\Code\Scanner\PropertyScanner>

Returns

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

Return a single property by given name or index of info

getProperty(string|integer $propertyNameOrInfoIndex) : boolean | \Zend\Code\Scanner\PropertyScanner

Parameters

$propertyNameOrInfoIndex

stringinteger

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Returns

boolean\Zend\Code\Scanner\PropertyScanner

Return a list of property names

getPropertyNames() : array

Returns

array

Return short name of class

getShortName() : null | string

Returns

nullstring

Retrieve a list of aliased traits used by the class.

getTraitAliases() : array

Returns

array

Retrieve a list of trait names used by this class.

getTraitNames() : array

Returns

array

Retrieve any traits used by the class.

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

Returns

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

Verify if class has constant

hasConstant(string $name) : boolean

Parameters

$name

string

Returns

boolean

Verify if class has method by given name

hasMethod(string $name) : boolean

Parameters

$name

string

Returns

boolean

Verify if class has parent

hasParentClass() : boolean

Returns

boolean

Verify if class has property

hasProperty(string $name) : boolean

Parameters

$name

string

Returns

boolean

Verify if class is an abstract class

isAbstract() : boolean

Returns

boolean

Verify if class is final

isFinal() : boolean

Returns

boolean

Verify if class is instantiable

isInstantiable() : boolean

Returns

boolean

Verify if class is an interface

isInterface() : boolean

Returns

boolean

Verify if class is a trait

isTrait() : boolean

Returns

boolean

Return an array of key = trait to keep, value = trait::method to ignore

getBlockedTraitMethods() : array

Returns

array

Retrieve visibility for a given alias.

getVisibilityForAlias(mixed $aliasName) : string

Parameters

$aliasName

mixed

Returns

string

Scan tokens

scan() : void

Exceptions

\Zend\Code\Exception\RuntimeException

 Properties

 

$docComment

$docComment : string

Default

null
 

$infos

$infos : array

Default

array()
 

$interfaces

$interfaces : array

Default

array()
 

$isAbstract

$isAbstract : boolean

Default

false
 

$isFinal

$isFinal : boolean

Default

false
 

$isInterface

$isInterface : boolean

Default

false
 

$isScanned

$isScanned : boolean

Default

false
 

$isTrait

$isTrait : boolean

Default

false
 

$lineEnd

$lineEnd : integer

Default

null
 

$lineStart

$lineStart : integer

Default

null
 

$methods

$methods : array

Default

array()
 

$name

$name : string

Default

null
 

$nameInformation

$nameInformation : \Zend\Code\NameInformation

Default

null
 

$parentClass

$parentClass : string

Default

null
 

$shortInterfaces

$shortInterfaces : array

Default

array()
 

$shortName

$shortName : string

Default

null
 

$shortParentClass

$shortParentClass : string

Default

null
 

$tokens

$tokens : array

Default

array()
 

$traits

$traits : array

Default

array()