| 1 | <?php |
||
| 8 | abstract class AbstractOperatorExpression implements ExpressionInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var ExpressionInterface $leftComponent |
||
| 12 | */ |
||
| 13 | private $leftComponent; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var ExpressionInterface $rightComponent |
||
| 17 | */ |
||
| 18 | private $rightComponent; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param ExpressionInterface $left |
||
| 22 | * @param ExpressionInterface $right |
||
| 23 | */ |
||
| 24 | public function __construct(ExpressionInterface $left, ExpressionInterface $right) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | abstract public function getOperator(); |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritdoc |
||
| 37 | */ |
||
| 38 | public function compile() |
||
| 42 | } |