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