com\setasign\SetaFramework\Router\Route
MultiCondition Class Route MultiCondition
File: /SetaFramework/src/Router/Route/MultiCondition.php
Class hierarchy
Implements
- \Psr\Log\LoggerAwareInterface
- RouteInterface
Summary
Properties
$defaultValues
protected array<string, mixed> MultiCondition::$defaultValues
$logger
protected ?\Psr\Log\LoggerInterface MultiCondition::$logger
$routes
protected RouteInterface[] MultiCondition::$routes
Methods
__construct()
public MultiCondition::__construct ()
Parameters
- $routes : RouteInterface[]
- $defaultValues : array<string, mixed>
match()
Checks whether this route matches to the request
Parameters
- $request : \Psr\Http\Message\RequestInterface
Return Values
Returns associative array(without any numeric key) with values or NULL if the route not match
setDefaultValue()
Sets a key of the defaultValues array
Parameters
- $key : string
The key shouldn't be a natural number
- $value : mixed
setDefaultValues()
Overwrites the defaultValues array
Parameters
- $defaultValues : array<string, mixed>
The keys of this array shouldn't be natural numbers
