web-base/core/Driver/SQL/Condition/Compare.class.php

21 lines
468 B
PHP
Raw Normal View History

2020-04-02 00:02:51 +02:00
<?php
namespace Driver\SQL\Condition;
class Compare extends Condition {
2020-04-03 17:39:58 +02:00
private string $operator;
private string $column;
private $value;
2020-04-02 00:02:51 +02:00
public function __construct($col, $val, $operator='=') {
$this->operator = $operator;
$this->column = $col;
$this->value = $val;
}
public function getColumn() { return $this->column; }
public function getValue() { return $this->value; }
public function getOperator() { return $this->operator; }
2020-04-03 17:39:58 +02:00
}