sql compare lhs must be col

This commit is contained in:
2021-04-08 19:48:04 +02:00
parent 1812b87fb4
commit c863a9083e
6 changed files with 44 additions and 21 deletions

View File

@@ -5,16 +5,16 @@ namespace Driver\SQL\Condition;
class Compare extends Condition {
private string $operator;
private $lhs;
private string $column;
private $value;
public function __construct($col, $val, string $operator = '=') {
public function __construct(string $col, $val, string $operator = '=') {
$this->operator = $operator;
$this->lhs = $col;
$this->column = $col;
$this->value = $val;
}
public function getLHS() { return $this->lhs; }
public function getColumn(): string { return $this->column; }
public function getValue() { return $this->value; }
public function getOperator(): string { return $this->operator; }