820. Class

820.1. Zend\Code\Generator\ValueGenerator

820.1.1. Methods

820.1.1.1. __construct

__construct()

@param mixed $value

Parameters:
  • string
  • string

820.1.1.2. isValidConstantType

isValidConstantType()

@return bool

820.1.1.3. setValue

setValue()

@param mixed $value

Return type:ValueGenerator

820.1.1.4. getValue

getValue()

@return mixed

820.1.1.5. setType

setType()

@param string $type

Return type:ValueGenerator

820.1.1.6. getType

getType()

@return string

820.1.1.7. setArrayDepth

setArrayDepth()

@param int $arrayDepth

Return type:ValueGenerator

820.1.1.8. getArrayDepth

getArrayDepth()

@return int

820.1.1.9. getValidatedType

getValidatedType()

@param string $type

Return type:string

820.1.1.10. getAutoDeterminedType

getAutoDeterminedType()

@param mixed $value

Return type:string

820.1.1.11. generate

generate()

@throws ExceptionRuntimeException

Return type:string

820.1.1.12. escape

escape()

Quotes value for PHP code.

Parameters:
  • string – Raw string.
  • bool – Whether add surrounding quotes or not.
Return type:

string PHP-ready code.

820.1.1.13. setOutputMode

setOutputMode()

@param string $outputMode

Return type:ValueGenerator

820.1.1.14. getOutputMode

getOutputMode()

@return string

820.1.1.15. __toString

__toString()

820.1.2. Constants

820.1.2.1. TYPE_AUTO

820.1.2.2. TYPE_BOOLEAN

820.1.2.3. TYPE_BOOL

820.1.2.4. TYPE_NUMBER

820.1.2.5. TYPE_INTEGER

820.1.2.6. TYPE_INT

820.1.2.7. TYPE_FLOAT

820.1.2.8. TYPE_DOUBLE

820.1.2.9. TYPE_STRING

820.1.2.10. TYPE_ARRAY

820.1.2.11. TYPE_CONSTANT

820.1.2.12. TYPE_NULL

820.1.2.13. TYPE_OBJECT

820.1.2.14. TYPE_OTHER

820.1.2.15. OUTPUT_MULTIPLE_LINE

820.1.2.16. OUTPUT_SINGLE_LINE