sql expression (lots of todo)

This commit is contained in:
2021-04-08 19:08:05 +02:00
parent 43d9a65def
commit 4582ca0f9f
13 changed files with 187 additions and 31 deletions

View File

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