category Zend
package Zend_Code_Generator

 Methods

__construct()

__construct($value, $type, $outputMode) 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::__construct()

Parameters

$value

$type

$outputMode

__toString()

__toString() 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::__toString()

Quotes value for PHP code.

escape(string $input, bool $quote) : string
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::escape()

Parameters

$input

string

Raw string.

$quote

bool

Whether add surrounding quotes or not.

Returns

stringPHP-ready code.

generate()

generate() : string

getArrayDepth()

getArrayDepth() : int
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::getArrayDepth()

Returns

int

_getAutoDeterminedType()

getAutoDeterminedType(mixed $value) : string
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::getAutoDeterminedType()

Parameters

$value

mixed

Returns

string

getIndentation()

getIndentation() : string | int
Inherited

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

Returns

stringint

getOutputMode()

getOutputMode() : string
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::getOutputMode()

Returns

string

getSourceContent()

getSourceContent() : string
Inherited

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

Returns

string

getType()

getType() : string
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::getType()

Returns

string

getValue()

getValue() : mixed
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::getValue()

Returns

mixed

isSourceDirty()

isSourceDirty() : bool
Inherited

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

Returns

bool

isValidConstantType()

isValidConstantType() : bool
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::isValidConstantType()

Returns

bool

setArrayDepth()

setArrayDepth(int $arrayDepth) : \Zend\Code\Generator\ValueGenerator
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::setArrayDepth()

Parameters

$arrayDepth

int

Returns

setIndentation()

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

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

Parameters

$indentation

stringint

Returns

setOptions()

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

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

Parameters

$options

array\Traversable

Exceptions

\Zend\Code\Generator\Exception\InvalidArgumentException

Returns

\Zend\Code\Generator\self

setOutputMode()

setOutputMode(string $outputMode) : \Zend\Code\Generator\ValueGenerator
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::setOutputMode()

Parameters

$outputMode

string

Returns

setSourceContent()

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

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

Parameters

$sourceContent

string

Returns

setSourceDirty()

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

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

Parameters

$isSourceDirty

bool

Returns

setType()

setType(string $type) : \Zend\Code\Generator\ValueGenerator
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::setType()

Parameters

$type

string

Returns

setValue()

setValue(mixed $value) : \Zend\Code\Generator\ValueGenerator
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::setValue()

Parameters

$value

mixed

Returns

_getValidatedType()

getValidatedType(string $type) : string
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::getValidatedType()

Parameters

$type

string

Returns

string

 Properties

 

$allowedTypes

$allowedTypes : array
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::$$allowedTypes
 

$arrayDepth

$arrayDepth : int
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::$$arrayDepth
 

<p>4 spaces by default</p>

$indentation : int | string
Inherited

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

$isSourceDirty

$isSourceDirty : bool
Inherited

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

$outputMode

$outputMode : string
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::$$outputMode
 

$sourceContent

$sourceContent : string
Inherited

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

$type

$type : string
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::$$type
 

$value

$value : mixed
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::$$value

 Constants

 

Line feed to use in place of EOL

LINE_FEED 
Inherited

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

OUTPUT_MULTIPLE_LINE

OUTPUT_MULTIPLE_LINE 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::OUTPUT_MULTIPLE_LINE
 

OUTPUT_SINGLE_LINE

OUTPUT_SINGLE_LINE 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::OUTPUT_SINGLE_LINE
 

TYPE_ARRAY

TYPE_ARRAY 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_ARRAY
 

TYPE_AUTO

TYPE_AUTO 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_AUTO
 

TYPE_BOOL

TYPE_BOOL 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_BOOL
 

TYPE_BOOLEAN

TYPE_BOOLEAN 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_BOOLEAN
 

TYPE_CONSTANT

TYPE_CONSTANT 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_CONSTANT
 

TYPE_DOUBLE

TYPE_DOUBLE 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_DOUBLE
 

TYPE_FLOAT

TYPE_FLOAT 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_FLOAT
 

TYPE_INT

TYPE_INT 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_INT
 

TYPE_INTEGER

TYPE_INTEGER 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_INTEGER
 

TYPE_NULL

TYPE_NULL 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_NULL
 

TYPE_NUMBER

TYPE_NUMBER 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_NUMBER
 

TYPE_OBJECT

TYPE_OBJECT 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_OBJECT
 

TYPE_OTHER

TYPE_OTHER 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_OTHER
 

TYPE_STRING

TYPE_STRING 
Inherited

inherited_from \Zend\Code\Generator\ValueGenerator::TYPE_STRING