/** * Formats the route with the specified values. * * Note: The formatting of the route is deferred to its {@link Pattern} instance. * * @param object|array|null $values * * @return FormattedRoute */ public function format($values = null) { return new FormattedRoute($this->pattern->format($values), $this); }