Shipment.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Rest\Response\Fields\Batch;
  6. /**
  7. * Temando API Batch Shipment Field
  8. *
  9. * @package Temando\Batch\Rest
  10. * @author Rhodri Davies <rhodri.davies@temando.com>
  11. * @author Benjamin Heuer <benjamin.heuer@netresearch.de>
  12. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  13. * @link http://www.temando.com/
  14. */
  15. class Shipment
  16. {
  17. /**
  18. * @var string
  19. */
  20. private $id;
  21. /**
  22. * @var string
  23. */
  24. private $status;
  25. /**
  26. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Shipment\Error[]
  27. */
  28. private $errors = [];
  29. /**
  30. * @return string
  31. */
  32. public function getId()
  33. {
  34. return $this->id;
  35. }
  36. /**
  37. * @param string $id
  38. * @return void
  39. */
  40. public function setId($id)
  41. {
  42. $this->id = $id;
  43. }
  44. /**
  45. * @return string
  46. */
  47. public function getStatus()
  48. {
  49. return $this->status;
  50. }
  51. /**
  52. * @param string $status
  53. * @return void
  54. */
  55. public function setStatus($status)
  56. {
  57. $this->status = $status;
  58. }
  59. /**
  60. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Shipment\Error[]
  61. */
  62. public function getErrors()
  63. {
  64. return $this->errors;
  65. }
  66. /**
  67. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Shipment\Error[] $errors
  68. * @return void
  69. */
  70. public function setErrors(array $errors)
  71. {
  72. $this->errors = $errors;
  73. }
  74. }