Property | Type | Description | |
---|---|---|---|
$body | string | ||
$docBlock | Zend\Code\Generator\DocBlockGenerator | ||
$parameters |
Method | 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 ) : |
Method | Description | |
---|---|---|
clearBodyIndention ( string $body ) : string | Identify the space indention from the first line and remove this indention from all lines |
Method | 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 | |
return | string |
public static fromReflection ( Zend\Code\Reflection\MethodReflection $reflectionMethod ) : |
||
$reflectionMethod | Zend\Code\Reflection\MethodReflection | |
return |
public getParameters ( ) : |
||
return |
public getReturnType ( ) : |
||
return |
public setParameter ( |
||
$parameter | ||
return |
public setParameters ( array $parameters ) : |
||
$parameters | array | |
return |
public setReturnType ( $returnType = null ) : |
||
return |
public setReturnsReference ( boolean $returnsReference ) : |
||
$returnsReference | boolean | |
return |
protected DocBlockGenerator,Zend\Code\Generator $docBlock | ||
return | Zend\Code\Generator\DocBlockGenerator |