File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments