category Zend
package Zend_Code_Generator

 Methods

__construct()

__construct($name, $type, $defaultValue, $position, $passByReference) 

Parameters

$name

$type

$defaultValue

$position

$passByReference

fromReflection()

fromReflection(\Zend\Code\Reflection\ParameterReflection $reflectionParameter) : \Zend\Code\Generator\ParameterGenerator

generate()

generate() : string

Returns

string

getDefaultValue()

getDefaultValue() : string

Returns

string

getIndentation()

getIndentation() : string | int
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::getIndentation()

Returns

stringint

getName()

getName() : string

Returns

string

getPassedByReference()

getPassedByReference() : bool

Returns

bool

getPosition()

getPosition() : int

Returns

int

getSourceContent()

getSourceContent() : string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::getSourceContent()

Returns

string

getType()

getType() : string

Returns

string

isSourceDirty()

isSourceDirty() : bool
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::isSourceDirty()

Returns

bool

Set the default value of the parameter.

setDefaultValue(null | bool | string | int | float | array | \Zend\Code\Generator\ValueGenerator $defaultValue) : \Zend\Code\Generator\ParameterGenerator

Certain variables are difficult to express

Parameters

$defaultValue

nullboolstringintfloatarray\Zend\Code\Generator\ValueGenerator

Returns

setIndentation()

setIndentation(string | int $indentation) : \Zend\Code\Generator\AbstractGenerator
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::setIndentation()

Parameters

$indentation

stringint

Returns

setName()

setName(string $name) : \Zend\Code\Generator\ParameterGenerator

Parameters

$name

string

Returns

setOptions()

setOptions(array | \Traversable $options) : \Zend\Code\Generator\self
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::setOptions()

Parameters

$options

array\Traversable

Exceptions

\Zend\Code\Generator\Exception\InvalidArgumentException

Returns

\Zend\Code\Generator\self

setPassedByReference()

setPassedByReference(bool $passedByReference) : \Zend\Code\Generator\ParameterGenerator

Parameters

$passedByReference

bool

Returns

setPosition()

setPosition(int $position) : \Zend\Code\Generator\ParameterGenerator

Parameters

$position

int

Returns

setSourceContent()

setSourceContent(string $sourceContent) : \Zend\Code\Generator\AbstractGenerator
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::setSourceContent()

Parameters

$sourceContent

string

Returns

setSourceDirty()

setSourceDirty(bool $isSourceDirty) : \Zend\Code\Generator\AbstractGenerator
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::setSourceDirty()

Parameters

$isSourceDirty

bool

Returns

setType()

setType(string $type) : \Zend\Code\Generator\ParameterGenerator

Parameters

$type

string

Returns

 Properties

 

$defaultValue

$defaultValue : string | \Zend\Code\Generator\ValueGenerator

 

<p>4 spaces by default</p>

$indentation : int | string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::$$indentation
 

$isSourceDirty

$isSourceDirty : bool
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::$$isSourceDirty
 

$name

$name : string

 

$passedByReference

$passedByReference : bool

 

$position

$position : int

 

$simple

$simple : array

 

$sourceContent

$sourceContent : string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::$$sourceContent
 

$type

$type : string

 Constants

 

Line feed to use in place of EOL

LINE_FEED 
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::LINE_FEED