public getRouteChildren ( ) : Symfony\Cmf\Component\Routing\RouteObjectInterface[] | ||
Результат | Symfony\Cmf\Component\Routing\RouteObjectInterface[] |
public function getRouteChildren()
{
$children = array();
foreach ($this->children as $child) {
if ($child instanceof RouteObjectInterface) {
$children[] = $child;
}
}
return $children;
}
public function testGetRouteChildrenNull() { $res = $this->route->getRouteChildren(); $this->assertEquals(array(), $res); }