Sets the pattern for the path.
This method implements a fluent interface.
string $pattern The path pattern:
Route The current Route instance
Deprecated in 2.2, to be removed in 3.0. Use setPath instead.
public function setPattern($pattern) {
return $this
->setPath($pattern);
}