TransportException.php 798 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /*
  3. * This file is part of Composer.
  4. *
  5. * (c) Nils Adermann <naderman@naderman.de>
  6. * Jordi Boggiano <j.boggiano@seld.be>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Composer\Downloader;
  12. /**
  13. * @author Jordi Boggiano <j.boggiano@seld.be>
  14. */
  15. class TransportException extends \RuntimeException
  16. {
  17. protected $headers;
  18. protected $response;
  19. public function setHeaders($headers)
  20. {
  21. $this->headers = $headers;
  22. }
  23. public function getHeaders()
  24. {
  25. return $this->headers;
  26. }
  27. public function setResponse($response)
  28. {
  29. $this->response = $response;
  30. }
  31. public function getResponse()
  32. {
  33. return $this->response;
  34. }
  35. }