addAnd() public method

Adds one or more $and clauses to the current expression.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/and/
public addAnd ( array | self $expression )
$expression array | self
Beispiel #1
0
 /**
  * Add an $and clause to the current expression.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/and/
  * @see Expr::addAnd
  * @param array|Expr $expression
  * @return self
  */
 public function addAnd($expression)
 {
     $this->expr->addAnd($expression);
     return $this;
 }
Beispiel #2
0
 /**
  * Add one or more $and clauses to the current expression.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/and/
  * @see Expr::addAnd
  * @param array|Expr $expression
  * @return $this
  */
 public function addAnd($expression)
 {
     $this->expr->addAnd(...func_get_args());
     return $this;
 }