__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\$this
deleteConstant(string $constant) : bool
string
bool
escape(string $input, bool $quote) : string
string
Raw string.
bool
Whether add surrounding quotes or not.
string
PHP-ready code.generate() : string
getArrayDepth() : int
int
getAutoDeterminedType(mixed $value) : string
mixed
string
getIndentation() : string
inherited_from | \Zend\Code\Generator\AbstractGenerator::getIndentation() |
---|
string
getOutputMode() : string
string
getSourceContent() : string
inherited_from | \Zend\Code\Generator\AbstractGenerator::getSourceContent() |
---|
string
getType() : string
string
getValue() : mixed
mixed
initEnvironmentConstants()
isSourceDirty() : bool
inherited_from | \Zend\Code\Generator\AbstractGenerator::isSourceDirty() |
---|
bool
isValidConstantType() : bool
bool
setIndentation(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