PHP Class Zephir\Expression\Constants

Resolves PHP or Zephir constants into C-Code
Afficher le fichier Open project: phalcon/zephir Class Usage Examples

Protected Properties

Свойство Type Description
$_expecting boolean
$_expectingVariable Zephir\Variable
$_readOnly boolean
$envConstants array Reserved ENV Constants
$magicConstants array Magic constants
$resources

Méthodes publiques

Méthode Description
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

Method Details

compile() public méthode

Resolves a PHP constant value into C-code
public compile ( array $expression, Zephir\CompilationContext $compilationContext ) : Zephir\CompiledExpression
$expression array
$compilationContext Zephir\CompilationContext
Résultat Zephir\CompiledExpression

setExpectReturn() public méthode

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() public méthode

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

Property Details

$_expecting protected_oe property

protected bool $_expecting
Résultat boolean

$_expectingVariable protected_oe property

protected Variable,Zephir $_expectingVariable
Résultat Zephir\Variable

$_readOnly protected_oe property

protected bool $_readOnly
Résultat boolean

$envConstants protected_oe property

Reserved ENV Constants
protected array $envConstants
Résultat array

$magicConstants protected_oe property

Magic constants
protected array $magicConstants
Résultat array

$resources protected_oe property

protected $resources