@@ -141,7 +141,7 @@ class Route implements RouteInterface
141
141
* $route->via(array('GET', 'POST'));
142
142
*</code>
143
143
*/
144
- public function via (var httpMethods ) -> <RouteInterface >
144
+ public function via (var httpMethods ) -> <Route >
145
145
{
146
146
let this -> _methods = httpMethods;
147
147
return this ;
@@ -419,7 +419,7 @@ class Route implements RouteInterface
419
419
* ))->setName('about');
420
420
*</code>
421
421
*/
422
- public function setName (string name ) -> <RouteInterface >
422
+ public function setName (string name ) -> <Route >
423
423
{
424
424
let this -> _name = name;
425
425
return this ;
@@ -430,7 +430,7 @@ class Route implements RouteInterface
430
430
* The developer can implement any arbitrary conditions here
431
431
* If the callback returns false the route is treated as not matched
432
432
*/
433
- public function beforeMatch (callable callback ) -> <RouteInterface >
433
+ public function beforeMatch (callable callback ) -> <Route >
434
434
{
435
435
let this -> _beforeMatch = callback;
436
436
return this ;
@@ -498,7 +498,7 @@ class Route implements RouteInterface
498
498
* $route->setHttpMethods(array('GET', 'POST'));
499
499
*</code>
500
500
*/
501
- public function setHttpMethods (var httpMethods ) -> <RouteInterface >
501
+ public function setHttpMethods (var httpMethods ) -> <Route >
502
502
{
503
503
let this -> _methods = httpMethods;
504
504
return this ;
@@ -519,7 +519,7 @@ class Route implements RouteInterface
519
519
* $route->setHostname('localhost');
520
520
*</code>
521
521
*/
522
- public function setHostname (string! hostname ) -> <RouteInterface >
522
+ public function setHostname (string! hostname ) -> <Route >
523
523
{
524
524
let this -> _hostname = hostname;
525
525
return this ;
@@ -536,7 +536,7 @@ class Route implements RouteInterface
536
536
/**
537
537
* Sets the group associated with the route
538
538
*/
539
- public function setGroup (<GroupInterface> group ) -> <RouteInterface >
539
+ public function setGroup (<GroupInterface> group ) -> <Route >
540
540
{
541
541
let this -> _group = group;
542
542
return this ;
@@ -553,7 +553,7 @@ class Route implements RouteInterface
553
553
/**
554
554
* Adds a converter to perform an additional transformation for certain parameter
555
555
*/
556
- public function convert (string! name, var converter ) -> <RouteInterface >
556
+ public function convert (string! name, var converter ) -> <Route >
557
557
{
558
558
let this -> _converters[name] = converter;
559
559
return this ;
0 commit comments