From 6c2a4cc37d36dd6e6d648cc617810d82b67e2bbd Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Tue, 8 Oct 2013 18:14:19 +0200 Subject: [PATCH] follow the property access model with children --- Doctrine/Phpcr/Route.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Doctrine/Phpcr/Route.php b/Doctrine/Phpcr/Route.php index b05d50ec..360a4cd6 100644 --- a/Doctrine/Phpcr/Route.php +++ b/Doctrine/Phpcr/Route.php @@ -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() @@ -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; + } }