public function getFailRouteName()
    {
        if($this->group->hasFailRoute())
            return $this->group->getFailRoute();

        $group = $this->group;

        while($route = $group->getUpperRoute())
        {
            /** @var Group $group */
            $group = $route->getGroup();

            if($group->hasFailRoute())
                return $group->getFailRoute();
        }

        return null;
    }
public function getFailRouteName()
    {
        if($this->group->hasFailRoute())
            return $this->group->getFailRoute();

        $group = $this->group;

        while($route = $group->getUpperRoute())
        {
            /** @var Group $group */
            $group = $route->getGroup();

            if($group->hasFailRoute())
                return $group->getFailRoute();
        }

        return null;
    }
public function getFailRouteName ( ) { if ( $ this -> group -> hasFailRoute ( ) ) return $ this -> group -> getFailRoute ( ) ; $ group = $ this -> group ; while ( $ route = $ group -> getUpperRoute ( ) ) { /** @var Group $group */ $ group = $ route -> getGroup ( ) ; if ( $ group -> hasFailRoute ( ) ) return $ group -> getFailRoute ( ) ; } return null ; }
Recursively find all the fail route reversely
@return string|null
Recursively find all the fail route reversely