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
Route setCondition(string $condition) Sets the condition. This method implements a fluent interface. Parameters string $condition The condition Return Value Route The current Route instance
setCondition($condition) Parameters $condition
serialize() {@inheritdoc}
Route setDefault(string $name, mixed $default) Sets a default value. Parameters string $name A variable name mixed $default The default value Return Value Route The current Route instance
setDefaults($defaults) Parameters $defaults
bool hasRequirement(string $key) Checks if a requirement is set for the given key. Parameters string $key A variable name Return Value bool true if a requirement is specified, false otherwise
bool hasOption(string $name) Checks if an option has been set. Parameters string $name An option name Return Value bool true if the option is set, false otherwise
getSchemes()
array getSchemes() Returns the lowercased schemes this route is restricted to. So an empty array means that any scheme is allowed. Return Value array The schemes
Page 145 of 787