Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route::getRouteChildren PHP 메소드

getRouteChildren() 공개 메소드

Filters out children that do not implement the RouteObjectInterface.
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;
    }

Usage Example

예제 #1
0
 public function testGetRouteChildrenNull()
 {
     $res = $this->route->getRouteChildren();
     $this->assertEquals(array(), $res);
 }