Свойство | Type | Description | |
---|---|---|---|
$defaultValue | string | |
||
$name | string | ||
$passedByReference | boolean | ||
$position | integer | ||
$type |
Méthode | 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 ) : |
Méthode | 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 | |
Résultat |
public setPassedByReference ( boolean $passedByReference ) : |
||
$passedByReference | boolean | |
Résultat |
public setPosition ( integer $position ) : |
||
$position | integer | |
Résultat |
public setVariadic ( boolean $variadic ) : |
||
$variadic | boolean | |
Résultat |
protected string|ValueGenerator,Zend\Code\Generator $defaultValue | ||
Résultat | string | |
protected TypeGenerator,Zend\Code\Generator|null $type | ||
Résultat |