Open Journal Systems  3.3.0
Guzzle\Service\Command\DefaultResponseParser Class Reference
Inheritance diagram for Guzzle\Service\Command\DefaultResponseParser:
Guzzle\Service\Command\ResponseParserInterface Guzzle\Service\Command\OperationResponseParser

Public Member Functions

 parse (CommandInterface $command)
 

Static Public Member Functions

static getInstance ()
 

Protected Member Functions

 handleParsing (CommandInterface $command, Response $response, $contentType)
 

Static Protected Attributes

static $instance
 

Detailed Description

Default HTTP response parser used to marshal JSON responses into arrays and XML responses into SimpleXMLElement

Definition at line 10 of file DefaultResponseParser.php.

Member Function Documentation

◆ getInstance()

static Guzzle\Service\Command\DefaultResponseParser::getInstance ( )
static

◆ handleParsing()

Guzzle\Service\Command\DefaultResponseParser::handleParsing ( CommandInterface  $command,
Response  $response,
  $contentType 
)
protected

◆ parse()

Guzzle\Service\Command\DefaultResponseParser::parse ( CommandInterface  $command)

Parse the HTTP response received by the command and update the command's result contents

Parameters
CommandInterface$commandCommand to parse and update
Returns
mixed Returns the result to set on the command

Implements Guzzle\Service\Command\ResponseParserInterface.

Definition at line 28 of file DefaultResponseParser.php.

References Guzzle\Service\Command\CommandInterface\getRequest(), and Guzzle\Service\Command\DefaultResponseParser\handleParsing().

Field Documentation

◆ $instance

Guzzle\Service\Command\DefaultResponseParser::$instance
staticprotected

The documentation for this class was generated from the following file: