프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$body | string | ||
$docBlock | Zend\Code\Generator\DocBlockGenerator | ||
$parameters |
메소드 | 설명 | |
---|---|---|
__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 ) : |
메소드 | 설명 | |
---|---|---|
clearBodyIndention ( string $body ) : string | Identify the space indention from the first line and remove this indention from all lines |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | string |
public static fromReflection ( Zend\Code\Reflection\MethodReflection $reflectionMethod ) : |
||
$reflectionMethod | Zend\Code\Reflection\MethodReflection | |
리턴 |
public setParameter ( |
||
$parameter | ||
리턴 |
public setParameters ( array $parameters ) : |
||
$parameters | array | |
리턴 |
public setReturnType ( $returnType = null ) : |
||
리턴 |
public setReturnsReference ( boolean $returnsReference ) : |
||
$returnsReference | boolean | |
리턴 |
protected DocBlockGenerator,Zend\Code\Generator $docBlock | ||
리턴 | Zend\Code\Generator\DocBlockGenerator |