public function getChildren(string $name = ''): array
    {
        $nodes = [];

        foreach ($this->children as $node) {
            if (!$name || strcasecmp($node->getName(), $name) == 0) {
                $nodes[] = $node;
            }
        }

        return $nodes;
    }
public function getChildren(string $name = ''): array
    {
        $nodes = [];

        foreach ($this->children as $node) {
            if (!$name || strcasecmp($node->getName(), $name) == 0) {
                $nodes[] = $node;
            }
        }

        return $nodes;
    }
public function getChildren ( string $ name = '' ) : array { $ nodes = [ ] ; foreach ( $ this -> children as $ node ) { if ( ! $ name || strcasecmp ( $ node -> getName ( ) , $ name ) == 0 ) { $ nodes [ ] = $ node ; } } return $ nodes ; }
Get registered child nodes

@return Node[]
Get registered child nodes