Methods
__construct()
        
__construct(array $classTokens, \Zend\Code\NameInformation $nameInformation) : \Zend\Code\Scanner\ClassScanner
Parameters
$classTokens
array
Returns
  
 
__toString()
        
__toString() 
 
Return a single constant by given name or index of info
getConstant(string | int $constantNameOrInfoIndex) : bool | \Zend\Code\Scanner\ConstantScanner
Parameters
$constantNameOrInfoIndex
stringint
Exceptions
Returns
  
 
Return a list of constant names
getConstantNames() : array
 
Return a list of constants
getConstants(bool $namesOnly) : array | \Zend\Code\Scanner\ConstantScanner[]
Parameters
$namesOnly
boolSet false to return instances of ConstantScanner
 
Returns
  
 
Return a list of interface names
getInterfaces() : array
 
Return number of last line
getLineEnd() : int | null
 
Return number of first line
getLineStart() : int | null
 
Return a single method by given name or index of info
getMethod(string | int $methodNameOrInfoIndex) : \Zend\Code\Scanner\MethodScanner
Parameters
$methodNameOrInfoIndex
stringint
Exceptions
Returns
  
 
Return a list of method names
getMethodNames() : array
 
Return a name of class
getName() : null | string
 
Return a name of parent class
getParentClass() : null | string
 
Return a single property by given name or index of info
getProperty(string | int $propertyNameOrInfoIndex) : bool | \Zend\Code\Scanner\PropertyScanner
Parameters
$propertyNameOrInfoIndex
stringint
Exceptions
Returns
  
 
Return a list of property names
getPropertyNames() : array
 
Return short name of class
getShortName() : null | string
 
Retrieve a list of aliased traits used by the class.
getTraitAliases() : array
 
Retrieve a list of trait names used by this class.
getTraitNames() : array
 
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
 
Verify if class has property
hasProperty(string $name) : bool
Parameters
$name
string
Returns
bool
  
 
Verify if class is an abstract class
isAbstract() : bool
 
Verify if class is final
isFinal() : bool
 
Verify if class is instantiable
isInstantiable() : bool
 
Verify if class is an interface
isInterface() : bool
 
Verify if class is a trait
isTrait() : bool
 
Return an array of key = trait to keep, value = trait::method to ignore
getBlockedTraitMethods() : array
 
Retrieve visibility for a given alias.
getVisibilityForAlias(mixed $aliasName) : string
Parameters
$aliasName
mixed
Returns
string
  
 
Scan tokens
scan() : void
 
 Properties
 
 
$interfaces
$interfaces : array
 
 
$isAbstract
$isAbstract : bool
 
 
 
$isInterface
$isInterface : bool
 
 
$isScanned
$isScanned : bool
 
 
 
 
$lineStart
$lineStart : int
 
 
$methods
$methods : array
 
 
 
 
$parentClass
$parentClass : string
 
 
$shortInterfaces
$shortInterfaces : array
 
 
$shortName
$shortName : string
 
 
$shortParentClass
$shortParentClass : string