abstract class Binary extends Operator (View source)

Properties

protected $value from  Expression
protected $precidence from  Expression
protected $leftAssoc from  Expression

Methods

__construct($value)

No description

getPrecidence()

No description

isLeftAssoc()

No description

isOpen()

No description

static 
factory($value)

No description

operate(Stack $stack, $variables = array())

No description

isOperator()

No description

from  Operator
isParenthesis()

No description

render()

No description

calculate($left, $right)

No description

from  Operator

Details

__construct($value)

Parameters

$value

getPrecidence()

isLeftAssoc()

isOpen()

static factory($value)

Parameters

$value

operate(Stack $stack, $variables = array())

Parameters

Stack $stack
$variables

isOperator()

isParenthesis()

abstract protected calculate($left, $right)

Parameters

$left
$right