Response.php 632 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace SendGrid;
  3. class Response
  4. {
  5. public
  6. $code,
  7. $headers,
  8. $raw_body,
  9. $body;
  10. public function __construct($code, $headers, $raw_body, $body)
  11. {
  12. $this->code = $code;
  13. $this->headers = $headers;
  14. $this->raw_body = $raw_body;
  15. $this->body = $body;
  16. }
  17. public function getCode()
  18. {
  19. return $this->code;
  20. }
  21. public function getHeaders()
  22. {
  23. return $this->headers;
  24. }
  25. public function getRawBody()
  26. {
  27. return $this->raw_body;
  28. }
  29. public function getBody()
  30. {
  31. return $this->body;
  32. }
  33. }