Property | Type | Description | |
---|---|---|---|
$docComment | string | ||
$infos | array | ||
$interfaces | array | ||
$isAbstract | boolean | ||
$isFinal | boolean | ||
$isInterface | boolean | ||
$isScanned | boolean | ||
$isTrait | boolean | ||
$lineEnd | integer | ||
$lineStart | integer | ||
$methods | array | ||
$name | string | ||
$nameInformation | Zend\Code\NameInformation | ||
$parentClass | string | ||
$shortInterfaces | array | ||
$shortName | string | ||
$shortParentClass | string | ||
$tokens | array | ||
$traits | array |
Method | Description | |
---|---|---|
__construct ( array $classTokens, Zend\Code\NameInformation $nameInformation = null ) : |
||
__toString ( ) | ||
export ( ) | ||
getAnnotations ( Zend\Code\Annotation\AnnotationManager $annotationManager ) : Zend\Code\Annotation\AnnotationCollection | Get annotations | |
getConstant ( string | integer $constantNameOrInfoIndex ) : boolean | Zend\Code\Scanner\ConstantScanner | Return a single constant by given name or index of info | |
getConstantNames ( ) : array | Return a list of constant names | |
getConstants ( boolean $namesOnly = true ) : array | Zend\Code\Scanner\ConstantScanner[] | Return a list of constants | |
getDocBlock ( ) : false | Zend\Code\Scanner\DocBlockScanner | Return documentation block | |
getDocComment ( ) : null | string | Return documentation comment | |
getInterfaces ( ) : array | Return a list of interface names | |
getLineEnd ( ) : integer | null | Return number of last line | |
getLineStart ( ) : integer | null | Return number of first line | |
getMethod ( string | integer $methodNameOrInfoIndex ) : Zend\Code\Scanner\MethodScanner | Return a single method by given name or index of info | |
getMethodNames ( ) : array | Return a list of method names | |
getMethods ( ) : Zend\Code\Scanner\MethodScanner[] | Return a list of methods | |
getName ( ) : null | string | Return a name of class | |
getParentClass ( ) : null | string | Return a name of parent class | |
getProperties ( ) : Zend\Code\Scanner\PropertyScanner[] | Return a list of properties | |
getProperty ( string | integer $propertyNameOrInfoIndex ) : boolean | Zend\Code\Scanner\PropertyScanner | Return a single property by given name or index of info | |
getPropertyNames ( ) : array | Return a list of property names | |
getShortName ( ) : null | string | Return short name of class | |
getTraitAliases ( ) : array | Retrieve a list of aliased traits used by the class. | |
getTraitNames ( ) : array | Retrieve a list of trait names used by this class. | |
getTraits ( ) : |
Retrieve any traits used by the class. | |
hasConstant ( string $name ) : boolean | Verify if class has constant | |
hasMethod ( string $name ) : boolean | Verify if class has method by given name | |
hasParentClass ( ) : boolean | Verify if class has parent | |
hasProperty ( string $name ) : boolean | Verify if class has property | |
isAbstract ( ) : boolean | Verify if class is an abstract class | |
isFinal ( ) : boolean | Verify if class is final | |
isInstantiable ( ) : boolean | Verify if class is instantiable | |
isInterface ( ) : boolean | Verify if class is an interface | |
isTrait ( ) : boolean | Verify if class is a trait |
Method | Description | |
---|---|---|
getBlockedTraitMethods ( ) : array | Return an array of key = trait to keep, value = trait::method to ignore | |
getVisibilityForAlias ( mixed $aliasName ) : string | Retrieve visibility for a given alias. | |
scan ( ) : void | Scan tokens |
public __construct ( array $classTokens, Zend\Code\NameInformation $nameInformation = null ) : |
||
$classTokens | array | |
$nameInformation | Zend\Code\NameInformation | |
return |
public getAnnotations ( Zend\Code\Annotation\AnnotationManager $annotationManager ) : Zend\Code\Annotation\AnnotationCollection | ||
$annotationManager | Zend\Code\Annotation\AnnotationManager | |
return | Zend\Code\Annotation\AnnotationCollection |
protected getBlockedTraitMethods ( ) : array | ||
return | array |
public getConstantNames ( ) : array | ||
return | array |
public getConstants ( boolean $namesOnly = true ) : array | Zend\Code\Scanner\ConstantScanner[] | ||
$namesOnly | boolean | Set false to return instances of ConstantScanner |
return | array | Zend\Code\Scanner\ConstantScanner[] |
public getDocBlock ( ) : false | Zend\Code\Scanner\DocBlockScanner | ||
return | false | Zend\Code\Scanner\DocBlockScanner |
public getDocComment ( ) : null | string | ||
return | null | string |
public getInterfaces ( ) : array | ||
return | array |
public getLineEnd ( ) : integer | null | ||
return | integer | null |
public getLineStart ( ) : integer | null | ||
return | integer | null |
public getMethodNames ( ) : array | ||
return | array |
public getMethods ( ) : Zend\Code\Scanner\MethodScanner[] | ||
return | Zend\Code\Scanner\MethodScanner[] |
public getParentClass ( ) : null | string | ||
return | null | string |
public getProperties ( ) : Zend\Code\Scanner\PropertyScanner[] | ||
return | Zend\Code\Scanner\PropertyScanner[] |
public getPropertyNames ( ) : array | ||
return | array |
public getShortName ( ) : null | string | ||
return | null | string |
public getTraitAliases ( ) : array | ||
return | array |
public getTraitNames ( ) : array | ||
return | array |
public getTraits ( ) : |
||
return |
protected getVisibilityForAlias ( mixed $aliasName ) : string | ||
$aliasName | mixed | |
return | string |
public hasConstant ( string $name ) : boolean | ||
$name | string | |
return | boolean |
public hasParentClass ( ) : boolean | ||
return | boolean |
public hasProperty ( string $name ) : boolean | ||
$name | string | |
return | boolean |
public isAbstract ( ) : boolean | ||
return | boolean |
public isInstantiable ( ) : boolean | ||
return | boolean |
public isInterface ( ) : boolean | ||
return | boolean |
protected NameInformation,Zend\Code $nameInformation | ||
return | Zend\Code\NameInformation |