Route setPath(string $pattern) Sets the pattern for the path. This method implements a fluent interface. Parameters string $pattern The path pattern Return Value Route The current Route instance
setPath($path) Parameters $path
Route setOptions(array $options) Sets the options. This method implements a fluent interface. Parameters array $options The options Return Value Route The current Route instance
setOptions($options) Parameters $options
Route setOption(string $name, mixed $value) Sets an option value. This method implements a fluent interface. Parameters string $name An option name mixed $value The option value Return Value Route The current Route instance
setName($name) Parameters $name
Route setMethods(string|array $methods) Sets the HTTP methods (e.g. 'POST') this route is restricted to. So an empty array means that any method is allowed. This method implements a fluent interface. Parameters string|array $methods The method or an array of methods Return Value Route The current Route instance
setMethods($methods) Parameters $methods
Route setHost(string $pattern) Sets the pattern for the host. This method implements a fluent interface. Parameters string $pattern The host pattern Return Value Route The current Route instance
setHost($pattern) Parameters $pattern
Page 144 of 787