PHP 클래스 Zephir\Expression\Closure

Creates an anonymous function within the extension simulating a closure
파일 보기 프로젝트 열기: phalcon/zephir 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$expecting boolean
$expectingVariable Zephir\Variable
$id Unique closure ID
$readOnly boolean

공개 메소드들

메소드 설명
compile ( array $expression, Zephir\CompilationContext $compilationContext ) : Zephir\CompiledExpression Creates a closure
setExpectReturn ( boolean $expecting, Variable $expectingVariable = null ) Sets if the variable must be resolved into a direct variable symbol create a temporary value or ignore the return value
setReadOnly ( boolean $readOnly ) Sets if the result of the evaluated expression is read only

메소드 상세

compile() 공개 메소드

Creates a closure
public compile ( array $expression, Zephir\CompilationContext $compilationContext ) : Zephir\CompiledExpression
$expression array
$compilationContext Zephir\CompilationContext
리턴 Zephir\CompiledExpression

setExpectReturn() 공개 메소드

Sets if the variable must be resolved into a direct variable symbol create a temporary value or ignore the return value
public setExpectReturn ( boolean $expecting, Variable $expectingVariable = null )
$expecting boolean
$expectingVariable Zephir\Variable

setReadOnly() 공개 메소드

Sets if the result of the evaluated expression is read only
public setReadOnly ( boolean $readOnly )
$readOnly boolean

프로퍼티 상세

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

protected bool $expecting
리턴 boolean

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

protected Variable,Zephir $expectingVariable
리턴 Zephir\Variable

$id 보호되어 있는 정적으로 프로퍼티

Unique closure ID
protected static $id

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

protected bool $readOnly
리턴 boolean