PHP Класс Zephir\Expression\Constants

Resolves PHP or Zephir constants into C-Code
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_expecting boolean
$_expectingVariable Zephir\Variable
$_readOnly boolean
$envConstants array Reserved ENV Constants
$magicConstants array Magic constants
$resources

Открытые методы

Метод Описание
compile ( array $expression, Zephir\CompilationContext $compilationContext ) : Zephir\CompiledExpression Resolves a PHP constant value into C-code
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() публичный Метод

Resolves a PHP constant value into C-code
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

$_readOnly защищенное свойство

protected bool $_readOnly
Результат boolean

$envConstants защищенное свойство

Reserved ENV Constants
protected array $envConstants
Результат array

$magicConstants защищенное свойство

Magic constants
protected array $magicConstants
Результат array

$resources защищенное свойство

protected $resources