/** * Set the $language option for $text criteria. * * This method must be called after text(). * * @see Expr::language() * @see http://docs.mongodb.org/manual/reference/operator/text/ * @param string $language * @return $this */ public function language($language) { $this->query->language($language); return $this; }
/** * Set the $language option for $text criteria. * * This method must be called after text(). * * @see Expr::language() * @see http://docs.mongodb.org/manual/reference/operator/text/ * @param string $language * @return self */ public function language($language) { $this->expr->language($language); return $this; }
/** * @expectedException BadMethodCallException */ public function testLanguageRequiresTextOperator() { $expr = new Expr(); $expr->language('en'); }