Route::setDefaults()

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

Route::setDefaults()

setDefaults($defaults) Parameters $defaults

Route::setDefault()

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()

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

Route::setCondition()

setCondition($condition) Parameters $condition

Route::serialize()

serialize() {@inheritdoc}

Route::hasScheme()

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

Route::hasRequirement()

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

Route::hasOption()

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

Route::hasDefault()

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