Property | Type | Description | |
---|---|---|---|
$defaultValue | string | |
||
$name | string | ||
$passedByReference | boolean | ||
$position | integer | ||
$type |
Method | Description | |
---|---|---|
__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 ) : |
Method | Description | |
---|---|---|
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 | |
return |
public setPassedByReference ( boolean $passedByReference ) : |
||
$passedByReference | boolean | |
return |
public setPosition ( integer $position ) : |
||
$position | integer | |
return |
public setVariadic ( boolean $variadic ) : |
||
$variadic | boolean | |
return |
protected string|ValueGenerator,Zend\Code\Generator $defaultValue | ||
return | string | |
protected TypeGenerator,Zend\Code\Generator|null $type | ||
return |