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

_getAutoDeterminedType()

_getAutoDeterminedType(mixed $value) : string

Parameters

$value

mixed

Returns

string

generate()

generate() : string

Returns

string

generate() - must be implemented by the child

generate() 
Inherited

getArrayDepth()

getArrayDepth() : integer

Returns

integer

getIndentation()

getIndentation() : string | integer
Inherited

Returns

stringinteger

getSourceContent()

getSourceContent() : string
Inherited

Returns

string

getType()

getType() : string

Returns

string

getValue()

getValue() : mixed

Returns

mixed

isSourceDirty()

isSourceDirty() : boolean
Inherited

Returns

boolean

isValidConstantType()

isValidConstantType() : boolean

Returns

boolean

setArrayDepth()

setArrayDepth(integer $arrayDepth) : \Zend_CodeGenerator_Php_Property_DefaultValue

Parameters

$arrayDepth

integer

Returns

\Zend_CodeGenerator_Php_Property_DefaultValue

setConfig()

setConfig(\Zend_Config $config) : \Zend_CodeGenerator_Abstract
Inherited

Parameters

$config

\Zend_Config

Returns

\Zend_CodeGenerator_Abstract

setIndentation()

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

Parameters

$indentation

stringinteger

Returns

\Zend_CodeGenerator_Php_Abstract

setOptions()

setOptions(array $options) : \Zend_CodeGenerator_Abstract
Inherited

Parameters

$options

array

Returns

\Zend_CodeGenerator_Abstract

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_Property_DefaultValue

Parameters

$type

string

Returns

\Zend_CodeGenerator_Php_Property_DefaultValue

setValue()

setValue(mixed $value) : \Zend_CodeGenerator_Php_Property_DefaultValue

Parameters

$value

mixed

Returns

\Zend_CodeGenerator_Php_Property_DefaultValue

_getValidatedType()

_getValidatedType(string $type) : string

Parameters

$type

string

Returns

string

_init()

_init() 

This method will prepare the constant array for this class

_init() - this is called before the constuctor

_init() 
Inherited

_prepare() - this is called at construction completion

_prepare() 
Inherited

 Properties

 

$_arrayDepth

$_arrayDepth : integer

Default

1
 

of reflected constants

$_constants : array

Default

array()
Static
 

$_indentation

$_indentation : integer | string

Default

' '
 

$_isSourceDirty

$_isSourceDirty : boolean

Default

true
 

$_sourceContent

$_sourceContent : string

Default

null
 

$_type

$_type : string

Default

self::TYPE_AUTO
 

$_value

$_value : mixed

Default

null

 Constants

 

Line feed to use in place of EOL

LINE_FEED = "\n" 
 

TYPE_ARRAY

TYPE_ARRAY = 'array' 
 

TYPE_AUTO

TYPE_AUTO = 'auto' 
 

TYPE_BOOL

TYPE_BOOL = 'bool' 
 

TYPE_BOOLEAN

TYPE_BOOLEAN = 'boolean' 
 

TYPE_CONSTANT

TYPE_CONSTANT = 'constant' 
 

TYPE_DOUBLE

TYPE_DOUBLE = 'double' 
 

TYPE_FLOAT

TYPE_FLOAT = 'float' 
 

TYPE_INT

TYPE_INT = 'int' 
 

TYPE_INTEGER

TYPE_INTEGER = 'integer' 
 

TYPE_NULL

TYPE_NULL = 'null' 
 

TYPE_NUMBER

TYPE_NUMBER = 'number' 
 

TYPE_OTHER

TYPE_OTHER = 'other' 
 

TYPE_STRING

TYPE_STRING = 'string'