protected function initConnectionData()
    {
        if ($this->connectionData) {
            return;
        }

        if (!$this->connectionUrl) {
            throw new \UnexpectedValueException(
                'Expected a connectionUrl, got nowt.'
            );
        }

        $parsed = parse_url($this->connectionUrl);
        if ($parsed === false) {
            throw new UnexpectedValueException(
                'Expected a sensible connectionUrl, got nowt but rubbish.'
            );
        }
        $this->connectionData = $parsed;
    }
protected function initConnectionData()
    {
        if ($this->connectionData) {
            return;
        }

        if (!$this->connectionUrl) {
            throw new \UnexpectedValueException(
                'Expected a connectionUrl, got nowt.'
            );
        }

        $parsed = parse_url($this->connectionUrl);
        if ($parsed === false) {
            throw new UnexpectedValueException(
                'Expected a sensible connectionUrl, got nowt but rubbish.'
            );
        }
        $this->connectionData = $parsed;
    }
protected function initConnectionData ( ) { if ( $ this -> connectionData ) { return ; } if ( ! $ this -> connectionUrl ) { throw new \ UnexpectedValueException ( 'Expected a connectionUrl, got nowt.' ) ; } $ parsed = parse_url ( $ this -> connectionUrl ) ; if ( $ parsed === false ) { throw new UnexpectedValueException ( 'Expected a sensible connectionUrl, got nowt but rubbish.' ) ; } $ this -> connectionData = $ parsed ; }
Parse a connection url and populate connectionData with the result.

@throws \UnexpectedValueException
Parse a connection url and populate connectionData with the result .