setEquals() public méthode

The arguments can be any valid expression as long as they each resolve to an array.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/setEquals/
public setEquals ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self
Exemple #1
0
 /**
  * Compares two or more arrays and returns true if they have the same
  * distinct elements and false otherwise.
  *
  * The arguments can be any valid expression as long as they each resolve to an array.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/setEquals/
  * @see Expr::setEquals
  * @param mixed|Expr $expression1
  * @param mixed|Expr $expression2
  * @param mixed|Expr $expression3,...   Additional sets
  * @return $this
  */
 public function setEquals($expression1, $expression2)
 {
     $this->expr->setEquals(...func_get_args());
     return $this;
 }