Zend Framework
3.0
|
Public Member Functions | |
__construct ($name=null, $type=null, $defaultValue=null, $position=null, $passByReference=false) | |
setType ($type) | |
getType () | |
setName ($name) | |
getName () | |
setDefaultValue ($defaultValue) | |
Set the default value of the parameter. | |
getDefaultValue () | |
setPosition ($position) | |
getPosition () | |
getPassedByReference () | |
setPassedByReference ($passedByReference) | |
setVariadic ($variadic) | |
getVariadic () | |
generate () | |
Public Member Functions inherited from AbstractGenerator | |
__construct ($options=[]) | |
setSourceDirty ($isSourceDirty=true) | |
isSourceDirty () | |
setIndentation ($indentation) | |
getIndentation () | |
setSourceContent ($sourceContent) | |
getSourceContent () | |
setOptions ($options) | |
Static Public Member Functions | |
static | fromReflection (ParameterReflection $reflectionParameter) |
static | fromArray (array $array) |
Generate from array. | |
Protected Attributes | |
$name = null | |
$type = null | |
$defaultValue = null | |
$position = null | |
$passedByReference = false | |
Protected Attributes inherited from AbstractGenerator | |
$isSourceDirty = true | |
$indentation = ' ' | |
$sourceContent = null | |
Additional Inherited Members | |
Public Attributes inherited from AbstractGenerator | |
const | LINE_FEED = "\n" |
Line feed to use in place of EOL. | |
__construct | ( | $name = null , |
|
$type = null , |
|||
$defaultValue = null , |
|||
$position = null , |
|||
$passByReference = false |
|||
) |
string | $name | |
string | $type | |
mixed | $defaultValue | |
int | $position | |
bool | $passByReference |
|
static |
Generate from array.
name string [required] Class Name type string defaultvalue null|bool|string|int|float|array|ValueGenerator passedbyreference bool position int sourcedirty bool indentation string sourcecontent string
Exception\InvalidArgumentException |
array | $array |
|
static |
ParameterReflection | $reflectionParameter |
generate | ( | ) |
Implements GeneratorInterface.
getDefaultValue | ( | ) |
getName | ( | ) |
getPassedByReference | ( | ) |
getPosition | ( | ) |
getType | ( | ) |
getVariadic | ( | ) |
setDefaultValue | ( | $defaultValue | ) |
Set the default value of the parameter.
Certain variables are difficult to express
null | bool | string | int | float | array | ValueGenerator | $defaultValue |
setName | ( | $name | ) |
string | $name |
setPassedByReference | ( | $passedByReference | ) |
bool | $passedByReference |
setPosition | ( | $position | ) |
int | $position |
setType | ( | $type | ) |
string | $type |
setVariadic | ( | $variadic | ) |
bool | $variadic |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |