@@ -23,6 +23,8 @@ trait RouteTrait
23
23
24
24
/**
25
25
* Adds defaults.
26
+ *
27
+ * @return $this
26
28
*/
27
29
final public function defaults (array $ defaults ): static
28
30
{
@@ -33,6 +35,8 @@ final public function defaults(array $defaults): static
33
35
34
36
/**
35
37
* Adds requirements.
38
+ *
39
+ * @return $this
36
40
*/
37
41
final public function requirements (array $ requirements ): static
38
42
{
@@ -43,6 +47,8 @@ final public function requirements(array $requirements): static
43
47
44
48
/**
45
49
* Adds options.
50
+ *
51
+ * @return $this
46
52
*/
47
53
final public function options (array $ options ): static
48
54
{
@@ -53,6 +59,8 @@ final public function options(array $options): static
53
59
54
60
/**
55
61
* Whether paths should accept utf8 encoding.
62
+ *
63
+ * @return $this
56
64
*/
57
65
final public function utf8 (bool $ utf8 = true ): static
58
66
{
@@ -63,6 +71,8 @@ final public function utf8(bool $utf8 = true): static
63
71
64
72
/**
65
73
* Sets the condition.
74
+ *
75
+ * @return $this
66
76
*/
67
77
final public function condition (string $ condition ): static
68
78
{
@@ -73,6 +83,8 @@ final public function condition(string $condition): static
73
83
74
84
/**
75
85
* Sets the pattern for the host.
86
+ *
87
+ * @return $this
76
88
*/
77
89
final public function host (string $ pattern ): static
78
90
{
@@ -86,6 +98,8 @@ final public function host(string $pattern): static
86
98
* So an empty array means that any scheme is allowed.
87
99
*
88
100
* @param string[] $schemes
101
+ *
102
+ * @return $this
89
103
*/
90
104
final public function schemes (array $ schemes ): static
91
105
{
@@ -99,6 +113,8 @@ final public function schemes(array $schemes): static
99
113
* So an empty array means that any method is allowed.
100
114
*
101
115
* @param string[] $methods
116
+ *
117
+ * @return $this
102
118
*/
103
119
final public function methods (array $ methods ): static
104
120
{
@@ -111,6 +127,8 @@ final public function methods(array $methods): static
111
127
* Adds the "_controller" entry to defaults.
112
128
*
113
129
* @param callable|string|array $controller a callable or parseable pseudo-callable
130
+ *
131
+ * @return $this
114
132
*/
115
133
final public function controller (callable |string |array $ controller ): static
116
134
{
@@ -121,6 +139,8 @@ final public function controller(callable|string|array $controller): static
121
139
122
140
/**
123
141
* Adds the "_locale" entry to defaults.
142
+ *
143
+ * @return $this
124
144
*/
125
145
final public function locale (string $ locale ): static
126
146
{
@@ -131,6 +151,8 @@ final public function locale(string $locale): static
131
151
132
152
/**
133
153
* Adds the "_format" entry to defaults.
154
+ *
155
+ * @return $this
134
156
*/
135
157
final public function format (string $ format ): static
136
158
{
@@ -141,6 +163,8 @@ final public function format(string $format): static
141
163
142
164
/**
143
165
* Adds the "_stateless" entry to defaults.
166
+ *
167
+ * @return $this
144
168
*/
145
169
final public function stateless (bool $ stateless = true ): static
146
170
{
0 commit comments