You are here

public function Comparison::__construct in Plug 7

Parameters

string $field:

string $operator:

mixed $value:

File

lib/doctrine/collections/lib/Doctrine/Common/Collections/Expr/Comparison.php, line 61

Class

Comparison
Comparison of a field with a value by the given operator.

Namespace

Doctrine\Common\Collections\Expr

Code

public function __construct($field, $operator, $value) {
  if (!$value instanceof Value) {
    $value = new Value($value);
  }
  $this->field = $field;
  $this->op = $operator;
  $this->value = $value;
}