diff options
Diffstat (limited to 'vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/CustomResponseModel.php')
-rw-r--r-- | vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/CustomResponseModel.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/CustomResponseModel.php b/vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/CustomResponseModel.php new file mode 100644 index 0000000..3fb6527 --- /dev/null +++ b/vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/CustomResponseModel.php @@ -0,0 +1,21 @@ +<?php + +namespace Guzzle\Tests\Mock; + +use Guzzle\Service\Command\ResponseClassInterface; +use Guzzle\Service\Command\OperationCommand; + +class CustomResponseModel implements ResponseClassInterface +{ + public $command; + + public static function fromCommand(OperationCommand $command) + { + return new self($command); + } + + public function __construct($command) + { + $this->command = $command; + } +} |