Свойство | Type | Description | |
---|---|---|---|
$body | string | ||
$docBlock | Zend\Code\Generator\DocBlockGenerator | ||
$parameters |
Méthode | Description | |
---|---|---|
__construct ( string $name = null, array $parameters = [], integer $flags = self::FLAG_PUBLIC, string $body = null, Zend\Code\Generator\DocBlockGenerator | string $docBlock = null ) | ||
__toString ( ) | ||
fromArray ( array $array ) : |
Generate from array | |
fromReflection ( Zend\Code\Reflection\MethodReflection $reflectionMethod ) : |
||
generate ( ) : string | ||
getBody ( ) : string | ||
getParameters ( ) : |
||
getReturnType ( ) : |
||
setBody ( string $body ) : |
||
setParameter ( |
||
setParameters ( array $parameters ) : |
||
setReturnType ( $returnType = null ) : |
||
setReturnsReference ( boolean $returnsReference ) : |
Méthode | Description | |
---|---|---|
clearBodyIndention ( string $body ) : string | Identify the space indention from the first line and remove this indention from all lines |
Méthode | Description | |
---|---|---|
expandLiteralType ( string $literalReturnType, ReflectionMethod $methodReflection ) : string | ||
extractReturnTypeFromMethodReflection ( Zend\Code\Reflection\MethodReflection $methodReflection ) : null | string |
public __construct ( string $name = null, array $parameters = [], integer $flags = self::FLAG_PUBLIC, string $body = null, Zend\Code\Generator\DocBlockGenerator | string $docBlock = null ) | ||
$name | string | |
$parameters | array | |
$flags | integer | |
$body | string | |
$docBlock | Zend\Code\Generator\DocBlockGenerator | string |
protected static clearBodyIndention ( string $body ) : string | ||
$body | string | |
Résultat | string |
public static fromReflection ( Zend\Code\Reflection\MethodReflection $reflectionMethod ) : |
||
$reflectionMethod | Zend\Code\Reflection\MethodReflection | |
Résultat |
public getParameters ( ) : |
||
Résultat |
public getReturnType ( ) : |
||
Résultat |
public setParameter ( |
||
$parameter | ||
Résultat |
public setParameters ( array $parameters ) : |
||
$parameters | array | |
Résultat |
public setReturnType ( $returnType = null ) : |
||
Résultat |
public setReturnsReference ( boolean $returnsReference ) : |
||
$returnsReference | boolean | |
Résultat |
protected DocBlockGenerator,Zend\Code\Generator $docBlock | ||
Résultat | Zend\Code\Generator\DocBlockGenerator |