public function rename($name) { $this->requiresCurrentField(); $this->newObj['$rename'][$this->currentField] = $name; return $this; }
/** * Rename the current field. * * @see Expr::rename() * @see http://docs.mongodb.org/manual/reference/operator/rename/ * @param string $name * @return self */ public function rename($name) { $this->expr->rename($name); return $this; }