protected function getHandler($response, $object)
    {
        $handler = null;

        switch ($this->format) {
        case 'json':
            $this->rawResponse = $response->json();
            $handler = new JsonResponseHandler($this->rawResponse, $object);
            break;
        case 'xml':
            $this->rawResponse = $response->xml();
            $handler = new XmlResponseHandler($this->rawResponse, $object);
            break;
        }

        return $handler;
    }
protected function getHandler($response, $object)
    {
        $handler = null;

        switch ($this->format) {
        case 'json':
            $this->rawResponse = $response->json();
            $handler = new JsonResponseHandler($this->rawResponse, $object);
            break;
        case 'xml':
            $this->rawResponse = $response->xml();
            $handler = new XmlResponseHandler($this->rawResponse, $object);
            break;
        }

        return $handler;
    }
protected function getHandler ( $ response , $ object ) { $ handler = null ; switch ( $ this -> format ) { case 'json' : $ this -> rawResponse = $ response -> json ( ) ; $ handler = new JsonResponseHandler ( $ this -> rawResponse , $ object ) ; break ; case 'xml' : $ this -> rawResponse = $ response -> xml ( ) ; $ handler = new XmlResponseHandler ( $ this -> rawResponse , $ object ) ; break ; } return $ handler ; }
Instantiate the appropriate Response document handler based on the
format

@param Guzzle\Http|Message|Response $response The Guzzle Response object
@param string                       $object   The name of the pardot obj

@access protected

@return HGG\Pardot\AbstractResponseHanler
Instantiate the appropriate Response document handler based on the format