File manager - Edit - /home/jardides/www/Cloud/3rdparty/guzzle/guzzle/tests/Guzzle/Tests/Mock/ErrorResponseMock.php
Back
<?php namespace Guzzle\Tests\Mock; use Guzzle\Plugin\ErrorResponse\ErrorResponseExceptionInterface; use Guzzle\Service\Command\CommandInterface; use Guzzle\Http\Message\Response; class ErrorResponseMock extends \Exception implements ErrorResponseExceptionInterface { public $command; public $response; public static function fromCommand(CommandInterface $command, Response $response) { return new self($command, $response); } public function __construct($command, $response) { $this->command = $command; $this->response = $response; $this->message = 'Error from ' . $response; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings