18
18
*/
19
19
class CompiledRoute implements \Serializable
20
20
{
21
- private array $ variables ;
22
- private array $ tokens ;
23
- private string $ staticPrefix ;
24
- private string $ regex ;
25
- private array $ pathVariables ;
26
- private array $ hostVariables ;
27
- private ?string $ hostRegex ;
28
- private array $ hostTokens ;
29
-
30
21
/**
31
22
* @param string $staticPrefix The static prefix of the compiled route
32
23
* @param string $regex The regular expression to use to match this route
@@ -37,16 +28,16 @@ class CompiledRoute implements \Serializable
37
28
* @param array $hostVariables An array of host variables
38
29
* @param array $variables An array of variables (variables defined in the path and in the host patterns)
39
30
*/
40
- public function __construct (string $ staticPrefix , string $ regex , array $ tokens , array $ pathVariables , ? string $ hostRegex = null , array $ hostTokens = [], array $ hostVariables = [], array $ variables = [])
41
- {
42
- $ this -> staticPrefix = $ staticPrefix ;
43
- $ this -> regex = $ regex ;
44
- $ this -> tokens = $ tokens ;
45
- $ this -> pathVariables = $ pathVariables ;
46
- $ this -> hostRegex = $ hostRegex ;
47
- $ this -> hostTokens = $ hostTokens ;
48
- $ this -> hostVariables = $ hostVariables ;
49
- $ this -> variables = $ variables ;
31
+ public function __construct (
32
+ private string $ staticPrefix ,
33
+ private string $ regex ,
34
+ private array $ tokens ,
35
+ private array $ pathVariables ,
36
+ private ? string $ hostRegex = null ,
37
+ private array $ hostTokens = [],
38
+ private array $ hostVariables = [],
39
+ private array $ variables = [],
40
+ ) {
50
41
}
51
42
52
43
public function __serialize (): array
0 commit comments