public function isValidForRootNode(Route $annotation)
    {
        if (!$annotation->name) {
            return false;
        }

        if (!$annotation->route) {
            return false;
        }

        return true;
    }
public function isValidForRootNode(Route $annotation)
    {
        if (!$annotation->name) {
            return false;
        }

        if (!$annotation->route) {
            return false;
        }

        return true;
    }
public function isValidForRootNode ( Route $ annotation ) { if ( ! $ annotation -> name ) { return false ; } if ( ! $ annotation -> route ) { return false ; } return true ; }
Checks if current route can be a class-level route.

@return bool
Checks if current route can be a class - level route .