Methods

__construct()

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

Parameters

$classTokens

array

$nameInformation

\Zend\Code\NameInformationnull

Returns

__toString()

__toString() 

export()

export() 

Get annotations

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

Return a single constant by given name or index of info

getConstant(string | int $constantNameOrInfoIndex) : bool | \Zend\Code\Scanner\ConstantScanner

Parameters

$constantNameOrInfoIndex

stringint

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Returns

Return a list of constant names

getConstantNames() : array

Returns

array

Return a list of constants

getConstants(bool $namesOnly) : array | \Zend\Code\Scanner\ConstantScanner[]

Parameters

$namesOnly

bool

Set false to return instances of ConstantScanner

Returns

Return documentation block

getDocBlock() : 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() : int | null

Returns

intnull

Return number of first line

getLineStart() : int | null

Returns

intnull

Return a single method by given name or index of info

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

Parameters

$methodNameOrInfoIndex

stringint

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Returns

Return a list of method names

getMethodNames() : array

Returns

array

Return a list of methods

getMethods() : \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() : \Zend\Code\Scanner\PropertyScanner[]

Return a single property by given name or index of info

getProperty(string | int $propertyNameOrInfoIndex) : bool | \Zend\Code\Scanner\PropertyScanner

Parameters

$propertyNameOrInfoIndex

stringint

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Returns

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() : \Zend\Code\Scanner\ClassScanner[]

Verify if class has constant

hasConstant(string $name) : bool

Parameters

$name

string

Returns

bool

Verify if class has method by given name

hasMethod(string $name) : bool

Parameters

$name

string

Returns

bool

Verify if class has parent

hasParentClass() : bool

Returns

bool

Verify if class has property

hasProperty(string $name) : bool

Parameters

$name

string

Returns

bool

Verify if class is an abstract class

isAbstract() : bool

Returns

bool

Verify if class is final

isFinal() : bool

Returns

bool

Verify if class is instantiable

isInstantiable() : bool

Returns

bool

Verify if class is an interface

isInterface() : bool

Returns

bool

Verify if class is a trait

isTrait() : bool

Returns

bool

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

 Properties

 

$docComment

$docComment : string

 

$infos

$infos : array

 

$interfaces

$interfaces : array

 

$isAbstract

$isAbstract : bool

 

$isFinal

$isFinal : bool

 

$isInterface

$isInterface : bool

 

$isScanned

$isScanned : bool

 

$isTrait

$isTrait : bool

 

$lineEnd

$lineEnd : int

 

$lineStart

$lineStart : int

 

$methods

$methods : array

 

$name

$name : string

 

$nameInformation

$nameInformation : \Zend\Code\NameInformation

 

$parentClass

$parentClass : string

 

$shortInterfaces

$shortInterfaces : array

 

$shortName

$shortName : string

 

$shortParentClass

$shortParentClass : string

 

$tokens

$tokens : array

 

$traits

$traits : array