private function buildVisibility(SimpleXMLElement $phpDocumentor): array
    {
        if ((array) $phpDocumentor->parser === []) {
            return $this->visibility;
        }

        if ((string) $phpDocumentor->parser->visibility === '') {
            return $this->visibility;
        }

        return explode(',', (string) $phpDocumentor->parser->visibility);
    }
private function buildVisibility(SimpleXMLElement $phpDocumentor): array
    {
        if ((array) $phpDocumentor->parser === []) {
            return $this->visibility;
        }

        if ((string) $phpDocumentor->parser->visibility === '') {
            return $this->visibility;
        }

        return explode(',', (string) $phpDocumentor->parser->visibility);
    }
private function buildVisibility ( SimpleXMLElement $ phpDocumentor ) : array { if ( ( array ) $ phpDocumentor -> parser === [ ] ) { return $ this -> visibility ; } if ( ( string ) $ phpDocumentor -> parser -> visibility === '' ) { return $ this -> visibility ; } return explode ( ',' , ( string ) $ phpDocumentor -> parser -> visibility ) ; }
Builds the visibility part of the array from the configuration xml.

@return string[]
Builds the visibility part of the array from the configuration xml .