PHP Класс Zephir\Expression\Closure

Creates an anonymous function within the extension simulating a closure
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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