You are here

public function Comparison::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/Comparison.php \Doctrine\Common\Collections\Expr\Comparison::__construct()

Parameters

string $field:

string $operator:

mixed $value:

File

vendor/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;
}