Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.0.x] Methods returning this in Mvc\Router\Route now have the correct return type #10264

Merged
merged 1 commit into from
May 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions phalcon/mvc/router/route.zep
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Route implements RouteInterface
* $route->via(array('GET', 'POST'));
*</code>
*/
public function via(var httpMethods) -> <RouteInterface>
public function via(var httpMethods) -> <Route>
{
let this->_methods = httpMethods;
return this;
Expand Down Expand Up @@ -419,7 +419,7 @@ class Route implements RouteInterface
* ))->setName('about');
*</code>
*/
public function setName(string name) -> <RouteInterface>
public function setName(string name) -> <Route>
{
let this->_name = name;
return this;
Expand All @@ -430,7 +430,7 @@ class Route implements RouteInterface
* The developer can implement any arbitrary conditions here
* If the callback returns false the route is treated as not matched
*/
public function beforeMatch(callable callback) -> <RouteInterface>
public function beforeMatch(callable callback) -> <Route>
{
let this->_beforeMatch = callback;
return this;
Expand Down Expand Up @@ -498,7 +498,7 @@ class Route implements RouteInterface
* $route->setHttpMethods(array('GET', 'POST'));
*</code>
*/
public function setHttpMethods(var httpMethods) -> <RouteInterface>
public function setHttpMethods(var httpMethods) -> <Route>
{
let this->_methods = httpMethods;
return this;
Expand All @@ -519,7 +519,7 @@ class Route implements RouteInterface
* $route->setHostname('localhost');
*</code>
*/
public function setHostname(string! hostname) -> <RouteInterface>
public function setHostname(string! hostname) -> <Route>
{
let this->_hostname = hostname;
return this;
Expand All @@ -536,7 +536,7 @@ class Route implements RouteInterface
/**
* Sets the group associated with the route
*/
public function setGroup(<GroupInterface> group) -> <RouteInterface>
public function setGroup(<GroupInterface> group) -> <Route>
{
let this->_group = group;
return this;
Expand All @@ -553,7 +553,7 @@ class Route implements RouteInterface
/**
* Adds a converter to perform an additional transformation for certain parameter
*/
public function convert(string! name, var converter) -> <RouteInterface>
public function convert(string! name, var converter) -> <Route>
{
let this->_converters[name] = converter;
return this;
Expand Down