setIntersection() public method

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/setIntersection/
public setIntersection ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self
Ejemplo n.º 1
0
 /**
  * Takes two or more arrays and returns an array that contains the elements
  * that appear in every input array.
  *
  * 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/setIntersection/
  * @see Expr::setIntersection
  * @param mixed|Expr $expression1
  * @param mixed|Expr $expression2
  * @param mixed|Expr $expression3,...   Additional sets
  * @return $this
  */
 public function setIntersection($expression1, $expression2)
 {
     $this->expr->setIntersection(...func_get_args());
     return $this;
 }