Todaymade\Daux\Tree\Directory::hasContent PHP Метод

hasContent() публичный Метод

Hides folders without showable content
public hasContent ( ) : boolean
Результат boolean
    public function hasContent()
    {
        foreach ($this->getEntries() as $node) {
            if ($node instanceof Content) {
                return true;
            } elseif ($node instanceof self) {
                if ($node->hasContent()) {
                    return true;
                }
            }
        }
        return false;
    }