프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$defaultValue | string | |
||
$name | string | ||
$passedByReference | boolean | ||
$position | integer | ||
$type |
메소드 | 설명 | |
---|---|---|
__construct ( string $name = null, string $type = null, mixed $defaultValue = null, integer $position = null, boolean $passByReference = false ) | ||
fromArray ( array $array ) : |
Generate from array | |
fromReflection ( Zend\Code\Reflection\ParameterReflection $reflectionParameter ) : |
||
generate ( ) : string | ||
getDefaultValue ( ) : string | ||
getName ( ) : string | ||
getPassedByReference ( ) : boolean | ||
getPosition ( ) : integer | ||
getType ( ) : string | ||
getVariadic ( ) : boolean | ||
setDefaultValue ( null | boolean | string | integer | float | array | |
Set the default value of the parameter. | |
setName ( string $name ) : |
||
setPassedByReference ( boolean $passedByReference ) : |
||
setPosition ( integer $position ) : |
||
setType ( string $type ) : |
||
setVariadic ( boolean $variadic ) : |
메소드 | 설명 | |
---|---|---|
expandLiteralParameterType ( string $literalParameterType, ReflectionParameter $reflectionParameter ) : string | ||
extractFQCNTypeFromReflectionType ( Zend\Code\Reflection\ParameterReflection $reflectionParameter ) : null | string | ||
generateTypeHint ( ) : string | ||
prePhp7ExtractFQCNTypeFromReflectionType ( Zend\Code\Reflection\ParameterReflection $reflectionParameter ) : string | null | For ancient PHP versions (yes, you should upgrade to 7.0): |
public static fromReflection ( Zend\Code\Reflection\ParameterReflection $reflectionParameter ) : |
||
$reflectionParameter | Zend\Code\Reflection\ParameterReflection | |
리턴 |
public setPassedByReference ( boolean $passedByReference ) : |
||
$passedByReference | boolean | |
리턴 |
public setPosition ( integer $position ) : |
||
$position | integer | |
리턴 |
public setVariadic ( boolean $variadic ) : |
||
$variadic | boolean | |
리턴 |
protected string|ValueGenerator,Zend\Code\Generator $defaultValue | ||
리턴 | string | |