category Zend
package Zend_CodeGenerator
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_CodeGenerator_Php_Abstract

 Methods

__construct()

__construct(array $options = array()
Inherited

Parameters

$options

array

__toString() - casting to a string will in turn call generate()

__toString() : string
Inherited

Returns

string

fromReflection()

fromReflection(\Zend_Reflection_Parameter $reflectionParameter) : \Zend_CodeGenerator_Php_Parameter
Static

Parameters

$reflectionParameter

\Zend_Reflection_Parameter

Returns

\Zend_CodeGenerator_Php_Parameter

generate()

generate() : string

Returns

string

generate() - must be implemented by the child

generate() 
Inherited

getDefaultValue()

getDefaultValue() : string

Returns

string

getIndentation()

getIndentation() : string | integer
Inherited

Returns

stringinteger

getName()

getName() : string

Returns

string

getPassedByReference()

getPassedByReference() : boolean

Returns

boolean

getPosition()

getPosition() : integer

Returns

integer

getSourceContent()

getSourceContent() : string
Inherited

Returns

string

getType()

getType() : string

Returns

string

isSourceDirty()

isSourceDirty() : boolean
Inherited

Returns

boolean

setConfig()

setConfig(\Zend_Config $config) : \Zend_CodeGenerator_Abstract
Inherited

Parameters

$config

\Zend_Config

Returns

\Zend_CodeGenerator_Abstract

Set the default value of the parameter.

setDefaultValue(null|boolean|string|integer|float|\Zend_CodeGenerator_Php_Parameter_DefaultValue $defaultValue) : \Zend_CodeGenerator_Php_Parameter

Certain variables are difficult to expres

Parameters

$defaultValue

nullbooleanstringintegerfloat\Zend_CodeGenerator_Php_Parameter_DefaultValue

Returns

\Zend_CodeGenerator_Php_Parameter

setIndentation()

setIndentation(string|integer $indentation) : \Zend_CodeGenerator_Php_Abstract
Inherited

Parameters

$indentation

stringinteger

Returns

\Zend_CodeGenerator_Php_Abstract

setName()

setName(string $name) : \Zend_CodeGenerator_Php_Parameter

Parameters

$name

string

Returns

\Zend_CodeGenerator_Php_Parameter

setOptions()

setOptions(array $options) : \Zend_CodeGenerator_Abstract
Inherited

Parameters

$options

array

Returns

\Zend_CodeGenerator_Abstract

setPassedByReference()

setPassedByReference(boolean $passedByReference) : \Zend_CodeGenerator_Php_Parameter

Parameters

$passedByReference

boolean

Returns

\Zend_CodeGenerator_Php_Parameter

setPosition()

setPosition(integer $position) : \Zend_CodeGenerator_Php_Parameter

Parameters

$position

integer

Returns

\Zend_CodeGenerator_Php_Parameter

setSourceContent()

setSourceContent(string $sourceContent) 
Inherited

Parameters

$sourceContent

string

setSourceDirty()

setSourceDirty(boolean $isSourceDirty = true) : \Zend_CodeGenerator_Php_Abstract
Inherited

Parameters

$isSourceDirty

boolean

Returns

\Zend_CodeGenerator_Php_Abstract

setType()

setType(string $type) : \Zend_CodeGenerator_Php_Parameter

Parameters

$type

string

Returns

\Zend_CodeGenerator_Php_Parameter

_init() - this is called before the constuctor

_init() 
Inherited

_prepare() - this is called at construction completion

_prepare() 
Inherited

 Properties

 

$_defaultValue

$_defaultValue : string

Default

null
 

$_indentation

$_indentation : integer | string

Default

' '
 

$_isSourceDirty

$_isSourceDirty : boolean

Default

true
 

$_name

$_name : string

Default

null
 

$_passedByReference

$_passedByReference : boolean

Default

false
 

$_position

$_position : integer

Default

null
 

$_sourceContent

$_sourceContent : string

Default

null
 

$_type

$_type : string

Default

null

 Constants

 

Line feed to use in place of EOL

LINE_FEED = "\n"