Skip to content

Commit 6c2a4cc

Browse files
committed
follow the property access model with children
1 parent fcabe73 commit 6c2a4cc

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

Doctrine/Phpcr/Route.php

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,11 @@ public function setPath($pattern)
246246
}
247247

248248
/**
249-
* Return this routes children
249+
* Get all route children of this route.
250250
*
251-
* Filters out children that do not implement
252-
* the RouteObjectInterface.
251+
* Filters out children that do not implement the RouteObjectInterface.
253252
*
254-
* @return array - array of RouteObjectInterface's
253+
* @return RouteObjectInterface[]
255254
*
256255
*/
257256
public function getRouteChildren()
@@ -266,4 +265,14 @@ public function getRouteChildren()
266265

267266
return $children;
268267
}
268+
269+
/**
270+
* Get all children of this route including non-routes.
271+
*
272+
* @return array
273+
*/
274+
public function getChildren()
275+
{
276+
return $this->children;
277+
}
269278
}

0 commit comments

Comments
 (0)