Skip to content

Commit

Permalink
Merge pull request #190 from symfony-cmf/route-children
Browse files Browse the repository at this point in the history
follow the property access model with children
  • Loading branch information
lsmith77 committed Oct 9, 2013
2 parents 5c9e512 + 6c2a4cc commit a8781da
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Doctrine/Phpcr/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,11 @@ public function setPath($pattern)
}

/**
* Return this routes children
* Get all route children of this route.
*
* Filters out children that do not implement
* the RouteObjectInterface.
* Filters out children that do not implement the RouteObjectInterface.
*
* @return array - array of RouteObjectInterface's
* @return RouteObjectInterface[]
*
*/
public function getRouteChildren()
Expand All @@ -266,4 +265,14 @@ public function getRouteChildren()

return $children;
}

/**
* Get all children of this route including non-routes.
*
* @return array
*/
public function getChildren()
{
return $this->children;
}
}

0 comments on commit a8781da

Please sign in to comment.