PHP Class Zephir\Statements\Let\Variable

Assign a value to a variable
Show file Open project: phalcon/zephir Class Usage Examples

Public Methods

Method Description
assign ( string $variable, Variable $symbolVariable, Zephir\CompiledExpression $resolvedExpr, Zephir\Detectors\ReadDetector $readDetector, Zephir\CompilationContext $compilationContext, array $statement ) Compiles foo = {expr} Changes the value of a mutable variable

Private Methods

Method Description
doArrayAssignment ( $codePrinter, $resolvedExpr, $symbolVariable, $variable, $statement, $compilationContext )
doBoolAssignment ( $codePrinter, $resolvedExpr, $symbolVariable, $variable, $statement, $compilationContext )
doDoubleAssignment ( $codePrinter, $resolvedExpr, $symbolVariable, $variable, $statement, $compilationContext )
doNumericAssignment ( $codePrinter, $resolvedExpr, $symbolVariable, $variable, $statement, $compilationContext )
doStringAssignment ( $codePrinter, $resolvedExpr, $symbolVariable, $variable, $statement, $compilationContext )
doVariableAssignment ( $codePrinter, $resolvedExpr, $symbolVariable, $variable, $statement, $compilationContext, $readDetector )

Method Details

assign() public method

Compiles foo = {expr} Changes the value of a mutable variable
public assign ( string $variable, Variable $symbolVariable, Zephir\CompiledExpression $resolvedExpr, Zephir\Detectors\ReadDetector $readDetector, Zephir\CompilationContext $compilationContext, array $statement )
$variable string
$symbolVariable Zephir\Variable
$resolvedExpr Zephir\CompiledExpression
$readDetector Zephir\Detectors\ReadDetector
$compilationContext Zephir\CompilationContext
$statement array