Open Journal Systems  3.3.0
Guzzle\Tests\Mock\ErrorResponseMock Class Reference
Inheritance diagram for Guzzle\Tests\Mock\ErrorResponseMock:
Guzzle\Plugin\ErrorResponse\ErrorResponseExceptionInterface

Public Member Functions

 __construct ($command, $response)
 

Static Public Member Functions

static fromCommand (CommandInterface $command, Response $response)
 

Data Fields

 $command
 
 $response
 

Detailed Description

Definition at line 9 of file ErrorResponseMock.php.

Constructor & Destructor Documentation

◆ __construct()

Guzzle\Tests\Mock\ErrorResponseMock::__construct (   $command,
  $response 
)

Member Function Documentation

◆ fromCommand()

static Guzzle\Tests\Mock\ErrorResponseMock::fromCommand ( CommandInterface  $command,
Response  $response 
)
static

Create an exception for a command based on a command and an error response definition

Parameters
CommandInterface$commandCommand that was sent
Response$responseThe error response
Returns
self

Implements Guzzle\Plugin\ErrorResponse\ErrorResponseExceptionInterface.

Definition at line 14 of file ErrorResponseMock.php.

References Guzzle\Tests\Mock\ErrorResponseMock\$command, and Guzzle\Tests\Mock\ErrorResponseMock\$response.

Field Documentation

◆ $command

Guzzle\Tests\Mock\ErrorResponseMock::$command

◆ $response

Guzzle\Tests\Mock\ErrorResponseMock::$response

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