__construct()
__toString()
addConstant()
deleteConstant()
escape()
generate()
getArrayDepth()
getAutoDeterminedType()
getConstants()
getIndentation()
getOutputMode()
getSourceContent()
getType()
getValue()
initEnvironmentConstants()
isSourceDirty()
isValidConstantType()
setArrayDepth()
setIndentation()
setOptions()
setOutputMode()
setSourceContent()
setSourceDirty()
setType()
setValue()
getValidatedType()
$allowedTypes
$arrayDepth
$constants
$indentation
$isSourceDirty
$outputMode
$sourceContent
$type
$value
LINE_FEED
OUTPUT_MULTIPLE_LINE
OUTPUT_SINGLE_LINE
TYPE_ARRAY
TYPE_AUTO
TYPE_BOOL
TYPE_BOOLEAN
TYPE_CONSTANT
TYPE_DOUBLE
TYPE_FLOAT
TYPE_INT
TYPE_INTEGER
TYPE_NULL
TYPE_NUMBER
TYPE_OBJECT
TYPE_OTHER
TYPE_STRING
__construct(mixed $value, string $type, string $outputMode, \Zend\Stdlib\ArrayObject $constants)
__toString()
addConstant(string $constant) : \Zend\Code\Generator\$this
string
\Zend\Code\Generator\$thisdeleteConstant(string $constant) : bool
string
boolescape(string $input, bool $quote) : string
stringRaw string.
boolWhether add surrounding quotes or not.
stringPHP-ready code.generate() : string
getArrayDepth() : int
intgetAutoDeterminedType(mixed $value) : string
mixed
stringgetIndentation() : string
| inherited_from | \Zend\Code\Generator\AbstractGenerator::getIndentation() |
|---|
stringgetOutputMode() : string
stringgetSourceContent() : string
| inherited_from | \Zend\Code\Generator\AbstractGenerator::getSourceContent() |
|---|
stringgetType() : string
stringgetValue() : mixed
mixedinitEnvironmentConstants()
isSourceDirty() : bool
| inherited_from | \Zend\Code\Generator\AbstractGenerator::isSourceDirty() |
|---|
boolisValidConstantType() : bool
boolsetIndentation(string $indentation) : \Zend\Code\Generator\AbstractGenerator
| inherited_from | \Zend\Code\Generator\AbstractGenerator::setIndentation() |
|---|
string
setOptions(array | \Traversable $options) : \Zend\Code\Generator\AbstractGenerator
| inherited_from | \Zend\Code\Generator\AbstractGenerator::setOptions() |
|---|
array\Traversable
\Zend\Code\Generator\Exception\InvalidArgumentException |
|---|
setSourceContent(string $sourceContent) : \Zend\Code\Generator\AbstractGenerator
| inherited_from | \Zend\Code\Generator\AbstractGenerator::setSourceContent() |
|---|
string
setSourceDirty(bool $isSourceDirty) : \Zend\Code\Generator\AbstractGenerator
| inherited_from | \Zend\Code\Generator\AbstractGenerator::setSourceDirty() |
|---|
bool
getValidatedType(string $type) : string
string
string$allowedTypes : array
$arrayDepth : int
$indentation : int | string
| inherited_from | \Zend\Code\Generator\AbstractGenerator::$$indentation |
|---|
$isSourceDirty : bool
| inherited_from | \Zend\Code\Generator\AbstractGenerator::$$isSourceDirty |
|---|
$outputMode : string
$sourceContent : string
| inherited_from | \Zend\Code\Generator\AbstractGenerator::$$sourceContent |
|---|
$type : string
$value : mixed
LINE_FEED
| inherited_from | \Zend\Code\Generator\AbstractGenerator::LINE_FEED |
|---|
OUTPUT_MULTIPLE_LINE
OUTPUT_SINGLE_LINE
TYPE_ARRAY
TYPE_AUTO
TYPE_BOOL
TYPE_BOOLEAN
TYPE_CONSTANT
TYPE_DOUBLE
TYPE_FLOAT
TYPE_INT
TYPE_INTEGER
TYPE_NULL
TYPE_NUMBER
TYPE_OBJECT
TYPE_OTHER
TYPE_STRING