@@ -26,7 +26,7 @@ trait RouteTrait
26
26
*
27
27
* @return $this
28
28
*/
29
- final public function defaults (array $ defaults )
29
+ final public function defaults (array $ defaults ): self
30
30
{
31
31
$ this ->route ->addDefaults ($ defaults );
32
32
@@ -38,7 +38,7 @@ final public function defaults(array $defaults)
38
38
*
39
39
* @return $this
40
40
*/
41
- final public function requirements (array $ requirements )
41
+ final public function requirements (array $ requirements ): self
42
42
{
43
43
$ this ->route ->addRequirements ($ requirements );
44
44
@@ -50,7 +50,7 @@ final public function requirements(array $requirements)
50
50
*
51
51
* @return $this
52
52
*/
53
- final public function options (array $ options )
53
+ final public function options (array $ options ): self
54
54
{
55
55
$ this ->route ->addOptions ($ options );
56
56
@@ -62,7 +62,7 @@ final public function options(array $options)
62
62
*
63
63
* @return $this
64
64
*/
65
- final public function utf8 (bool $ utf8 = true )
65
+ final public function utf8 (bool $ utf8 = true ): self
66
66
{
67
67
$ this ->route ->addOptions (['utf8 ' => $ utf8 ]);
68
68
@@ -74,7 +74,7 @@ final public function utf8(bool $utf8 = true)
74
74
*
75
75
* @return $this
76
76
*/
77
- final public function condition (string $ condition )
77
+ final public function condition (string $ condition ): self
78
78
{
79
79
$ this ->route ->setCondition ($ condition );
80
80
@@ -86,7 +86,7 @@ final public function condition(string $condition)
86
86
*
87
87
* @return $this
88
88
*/
89
- final public function host (string $ pattern )
89
+ final public function host (string $ pattern ): self
90
90
{
91
91
$ this ->route ->setHost ($ pattern );
92
92
@@ -101,7 +101,7 @@ final public function host(string $pattern)
101
101
*
102
102
* @return $this
103
103
*/
104
- final public function schemes (array $ schemes )
104
+ final public function schemes (array $ schemes ): self
105
105
{
106
106
$ this ->route ->setSchemes ($ schemes );
107
107
@@ -116,7 +116,7 @@ final public function schemes(array $schemes)
116
116
*
117
117
* @return $this
118
118
*/
119
- final public function methods (array $ methods )
119
+ final public function methods (array $ methods ): self
120
120
{
121
121
$ this ->route ->setMethods ($ methods );
122
122
@@ -130,7 +130,7 @@ final public function methods(array $methods)
130
130
*
131
131
* @return $this
132
132
*/
133
- final public function controller ($ controller )
133
+ final public function controller ($ controller ): self
134
134
{
135
135
$ this ->route ->addDefaults (['_controller ' => $ controller ]);
136
136
@@ -142,7 +142,7 @@ final public function controller($controller)
142
142
*
143
143
* @return $this
144
144
*/
145
- final public function locale (string $ locale )
145
+ final public function locale (string $ locale ): self
146
146
{
147
147
$ this ->route ->addDefaults (['_locale ' => $ locale ]);
148
148
@@ -154,7 +154,7 @@ final public function locale(string $locale)
154
154
*
155
155
* @return $this
156
156
*/
157
- final public function format (string $ format )
157
+ final public function format (string $ format ): self
158
158
{
159
159
$ this ->route ->addDefaults (['_format ' => $ format ]);
160
160
0 commit comments