Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route::getRouteChildren PHP Méthode

getRouteChildren() public méthode

Filters out children that do not implement the RouteObjectInterface.
public getRouteChildren ( ) : Symfony\Cmf\Component\Routing\RouteObjectInterface[]
Résultat 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

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