public function toObjects()
    {
        if ($this->getResponseType() == 'application/json')
        {
            $response = $this->convertJsonToObjects($this->getBody());
        }
        elseif ($this->getResponseType() == 'application/binary')
        {
            $response = $this->convertSerializedToObjects($this->getBody());
        }
        else
        {
            $response = null;
        }

        if ( ! $response)
        {
            $this->throwResponseConversionException();
        }

        return $response;
    }
public function toObjects()
    {
        if ($this->getResponseType() == 'application/json')
        {
            $response = $this->convertJsonToObjects($this->getBody());
        }
        elseif ($this->getResponseType() == 'application/binary')
        {
            $response = $this->convertSerializedToObjects($this->getBody());
        }
        else
        {
            $response = null;
        }

        if ( ! $response)
        {
            $this->throwResponseConversionException();
        }

        return $response;
    }
public function toObjects ( ) { if ( $ this -> getResponseType ( ) == 'application/json' ) { $ response = $ this -> convertJsonToObjects ( $ this -> getBody ( ) ) ; } elseif ( $ this -> getResponseType ( ) == 'application/binary' ) { $ response = $ this -> convertSerializedToObjects ( $ this -> getBody ( ) ) ; } else { $ response = null ; } if ( ! $ response ) { $ this -> throwResponseConversionException ( ) ; } return $ response ; }
Convert the response body to PHP Objects

@return array|object
@throws ResponseConversionException
Convert the response body to PHP Objects