for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Phuria\QueryBuilder\Expression;
/**
* @author Beniamin Jonatan Šimko <[email protected]>
*/
abstract class AbstractOperatorExpression implements ExpressionInterface
{
* @var ExpressionInterface $leftComponent
private $leftComponent;
* @var ExpressionInterface $rightComponent
private $rightComponent;
* @param ExpressionInterface $left
* @param ExpressionInterface $right
public function __construct(ExpressionInterface $left, ExpressionInterface $right)
$this->leftComponent = $left;
$this->rightComponent = $right;
}
* @return string
abstract public function getOperator();
* @inheritdoc
public function compile()
return $this->leftComponent->compile() . ' ' . $this->getOperator() . ' ' . $this->rightComponent->compile();