eq() public method

Compares two values and returns whether the are equivalent.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/eq/
public eq ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self
Example #1
0
 /**
  * Compares two values and returns whether they are equivalent.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/eq/
  * @see Expr::eq
  * @param mixed|Expr $expression1
  * @param mixed|Expr $expression2
  * @return self
  */
 public function eq($expression1, $expression2)
 {
     $this->expr->eq($expression1, $expression2);
     return $this;
 }