PHP 클래스 Zend\Code\Generator\ValueGenerator

상속: extends Zend\Code\Generator\AbstractGenerator
파일 보기 프로젝트 열기: zendframework/zend-code 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$allowedTypes array
$arrayDepth integer
$constants ArrayObject | Zend\Stdlib\ArrayObject Autodetectable constants
$outputMode string
$type string
$value mixed

공개 메소드들

메소드 설명
__construct ( mixed $value = null, string $type = self::TYPE_AUTO, string $outputMode = self::OUTPUT_MULTIPLE_LINE, null | ArrayObject | Zend\Stdlib\ArrayObject $constants = null )
__toString ( )
addConstant ( string $constant ) Add constant to list
deleteConstant ( string $constant ) : boolean Delete constant from constant list
escape ( string $input, boolean $quote = true ) : string Quotes value for PHP code.
generate ( ) : string
getArrayDepth ( ) : integer
getAutoDeterminedType ( mixed $value ) : string
getConstants ( ) : ArrayObject | Zend\Stdlib\ArrayObject Return constant list
getOutputMode ( ) : string
getType ( ) : string
getValue ( ) : mixed
initEnvironmentConstants ( ) Init constant list by defined and magic constants
isValidConstantType ( ) : boolean
setArrayDepth ( integer $arrayDepth ) : ValueGenerator
setOutputMode ( string $outputMode ) : ValueGenerator
setType ( string $type ) : ValueGenerator
setValue ( mixed $value ) : ValueGenerator

보호된 메소드들

메소드 설명
getValidatedType ( string $type ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( mixed $value = null, string $type = self::TYPE_AUTO, string $outputMode = self::OUTPUT_MULTIPLE_LINE, null | ArrayObject | Zend\Stdlib\ArrayObject $constants = null )
$value mixed
$type string
$outputMode string
$constants null | ArrayObject | Zend\Stdlib\ArrayObject

__toString() 공개 메소드

public __toString ( )

addConstant() 공개 메소드

Add constant to list
public addConstant ( string $constant )
$constant string

deleteConstant() 공개 메소드

Delete constant from constant list
public deleteConstant ( string $constant ) : boolean
$constant string
리턴 boolean

escape() 공개 정적인 메소드

Quotes value for PHP code.
public static escape ( string $input, boolean $quote = true ) : string
$input string Raw string.
$quote boolean Whether add surrounding quotes or not.
리턴 string PHP-ready code.

generate() 공개 메소드

public generate ( ) : string
리턴 string

getArrayDepth() 공개 메소드

public getArrayDepth ( ) : integer
리턴 integer

getAutoDeterminedType() 공개 메소드

public getAutoDeterminedType ( mixed $value ) : string
$value mixed
리턴 string

getConstants() 공개 메소드

Return constant list
public getConstants ( ) : ArrayObject | Zend\Stdlib\ArrayObject
리턴 ArrayObject | Zend\Stdlib\ArrayObject

getOutputMode() 공개 메소드

public getOutputMode ( ) : string
리턴 string

getType() 공개 메소드

public getType ( ) : string
리턴 string

getValidatedType() 보호된 메소드

protected getValidatedType ( string $type ) : string
$type string
리턴 string

getValue() 공개 메소드

public getValue ( ) : mixed
리턴 mixed

initEnvironmentConstants() 공개 메소드

Init constant list by defined and magic constants

isValidConstantType() 공개 메소드

public isValidConstantType ( ) : boolean
리턴 boolean

setArrayDepth() 공개 메소드

public setArrayDepth ( integer $arrayDepth ) : ValueGenerator
$arrayDepth integer
리턴 ValueGenerator

setOutputMode() 공개 메소드

public setOutputMode ( string $outputMode ) : ValueGenerator
$outputMode string
리턴 ValueGenerator

setType() 공개 메소드

public setType ( string $type ) : ValueGenerator
$type string
리턴 ValueGenerator

setValue() 공개 메소드

public setValue ( mixed $value ) : ValueGenerator
$value mixed
리턴 ValueGenerator

프로퍼티 상세

$allowedTypes 보호되어 있는 프로퍼티

protected array $allowedTypes
리턴 array

$arrayDepth 보호되어 있는 프로퍼티

protected int $arrayDepth
리턴 integer

$constants 보호되어 있는 프로퍼티

Autodetectable constants
protected ArrayObject|ArrayObject,Zend\Stdlib $constants
리턴 ArrayObject | Zend\Stdlib\ArrayObject

$outputMode 보호되어 있는 프로퍼티

protected string $outputMode
리턴 string

$type 보호되어 있는 프로퍼티

protected string $type
리턴 string

$value 보호되어 있는 프로퍼티

protected mixed $value
리턴 mixed