PHP Class Pinq\Expressions\AssignmentExpression

Author: Elliot Levin ([email protected])
Inheritance: extends Expression
Show file Open project: timetoogo/pinq Class Usage Examples

Public Methods

Method Description
__clone ( )
__construct ( Expression $assignTo, $operator, Expression $assignmentValue )
getAssignTo ( ) : Expression
getAssignmentValue ( ) : Expression
getOperator ( ) : string
serialize ( )
toBinaryOperationEquivalent ( ) : AssignmentExpression Converts the assignment expression with compound assignment operators to the equivalent assignment and binary operator combination
traverse ( ExpressionWalker $walker )
unserialize ( $serialized )
update ( Expression $assignTo, string $operator, Expression $assignmentValue ) : self

Protected Methods

Method Description
compileCode ( &$code )

Method Details

__clone() public method

public __clone ( )

__construct() public method

public __construct ( Expression $assignTo, $operator, Expression $assignmentValue )
$assignTo Expression
$assignmentValue Expression

compileCode() protected method

protected compileCode ( &$code )

getAssignTo() public method

public getAssignTo ( ) : Expression
return Expression

getAssignmentValue() public method

public getAssignmentValue ( ) : Expression
return Expression

getOperator() public method

public getOperator ( ) : string
return string The assignment operator

serialize() public method

public serialize ( )

toBinaryOperationEquivalent() public method

$variable += 5 becomes $variable = $variable + 5
public toBinaryOperationEquivalent ( ) : AssignmentExpression
return AssignmentExpression

traverse() public method

public traverse ( ExpressionWalker $walker )
$walker ExpressionWalker

unserialize() public method

public unserialize ( $serialized )

update() public method

public update ( Expression $assignTo, string $operator, Expression $assignmentValue ) : self
$assignTo Expression
$operator string
$assignmentValue Expression
return self