GuzzleStream.php 541 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Aws\Handler\GuzzleV5;
  3. use GuzzleHttp\Stream\StreamDecoratorTrait;
  4. use GuzzleHttp\Stream\StreamInterface as GuzzleStreamInterface;
  5. use Psr\Http\Message\StreamInterface as Psr7StreamInterface;
  6. /**
  7. * Adapts a PSR-7 Stream to a Guzzle 5 Stream.
  8. *
  9. * @codeCoverageIgnore
  10. */
  11. class GuzzleStream implements GuzzleStreamInterface
  12. {
  13. use StreamDecoratorTrait;
  14. /** @var Psr7StreamInterface */
  15. private $stream;
  16. public function __construct(Psr7StreamInterface $stream)
  17. {
  18. $this->stream = $stream;
  19. }
  20. }