1818 */
1919class CompiledRoute implements \Serializable
2020{
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-
3021 /**
3122 * @param string $staticPrefix The static prefix of the compiled route
3223 * @param string $regex The regular expression to use to match this route
@@ -37,16 +28,16 @@ class CompiledRoute implements \Serializable
3728 * @param array $hostVariables An array of host variables
3829 * @param array $variables An array of variables (variables defined in the path and in the host patterns)
3930 */
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+ ) {
5041 }
5142
5243 public function __serialize (): array
0 commit comments