Route setDefaults(array $defaults) Sets the defaults. This method implements a fluent interface. Parameters array $defaults The defaults Return Value Route The current Route instance
setDefaults($defaults) Parameters $defaults
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
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}
bool hasScheme(string $scheme) Checks if a scheme requirement has been set. Parameters string $scheme Return Value bool true if the scheme requirement exists, otherwise false
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
bool hasDefault(string $name) Checks if a default value is set for the given variable. Parameters string $name A variable name Return Value bool true if the default value is set, false otherwise
Page 145 of 787