protected function parse(): array
    {
        $offset = 0;
        $name = $this->_parseName($offset);
        if ($offset < $this->_len) {
            $remains = substr($this->_dn, $offset);
            throw new \UnexpectedValueException(
                "Parser finished before the end of string" .
                     ", remaining: '$remains'.");
        }
        return $name;
    }
protected function parse(): array
    {
        $offset = 0;
        $name = $this->_parseName($offset);
        if ($offset < $this->_len) {
            $remains = substr($this->_dn, $offset);
            throw new \UnexpectedValueException(
                "Parser finished before the end of string" .
                     ", remaining: '$remains'.");
        }
        return $name;
    }
protected function parse ( ) : array { $ offset = 0 ; $ name = $ this -> _parseName ( $ offset ) ; if ( $ offset < $ this -> _len ) { $ remains = substr ( $ this -> _dn , $ offset ) ; throw new \ UnexpectedValueException ( "Parser finished before the end of string" . ", remaining: '$remains'." ) ; } return $ name ; }
Parse DN to name-components.

@throws \RuntimeException
@return array
Parse DN to name - components .