BatchAttributes.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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;
  6. /**
  7. * Temando API Batch Resource Object Attributes
  8. *
  9. * @package Temando\Shipping\Rest
  10. * @author Rhodri Davies <rhodri.davies@temando.com>
  11. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  12. * @link http://www.temando.com/
  13. */
  14. class BatchAttributes
  15. {
  16. /**
  17. * @var string
  18. */
  19. private $status;
  20. /**
  21. * @var string
  22. */
  23. private $createdAt;
  24. /**
  25. * @var string
  26. */
  27. private $modifiedAt;
  28. /**
  29. * @var \Temando\Shipping\Rest\Response\Fields\Batch\Shipment[]
  30. */
  31. private $shipments = [];
  32. /**
  33. * @var int
  34. */
  35. private $totalShipments;
  36. /**
  37. * @var string
  38. */
  39. private $documentation;
  40. /**
  41. * @return string
  42. */
  43. public function getStatus()
  44. {
  45. return $this->status;
  46. }
  47. /**
  48. * @param string $status
  49. * @return void
  50. */
  51. public function setStatus($status)
  52. {
  53. $this->status = $status;
  54. }
  55. /**
  56. * @return string
  57. */
  58. public function getCreatedAt()
  59. {
  60. return $this->createdAt;
  61. }
  62. /**
  63. * @param string $createdAt
  64. * @return void
  65. */
  66. public function setCreatedAt($createdAt)
  67. {
  68. $this->createdAt = $createdAt;
  69. }
  70. /**
  71. * @param string $modifiedAt
  72. * @return void
  73. */
  74. public function setModifiedAt($modifiedAt)
  75. {
  76. $this->modifiedAt = $modifiedAt;
  77. }
  78. /**
  79. * @return string
  80. */
  81. public function getModifiedAt()
  82. {
  83. return $this->modifiedAt;
  84. }
  85. /**
  86. * @return \Temando\Shipping\Rest\Response\Fields\Batch\Shipment[]
  87. */
  88. public function getShipments()
  89. {
  90. return $this->shipments;
  91. }
  92. /**
  93. * @param \Temando\Shipping\Rest\Response\Fields\Batch\Shipment[] $shipments
  94. * @return void
  95. */
  96. public function setShipments(array $shipments)
  97. {
  98. $this->shipments = $shipments;
  99. }
  100. /**
  101. * @return int
  102. */
  103. public function getTotalShipments()
  104. {
  105. return $this->totalShipments;
  106. }
  107. /**
  108. * @param int $totalShipments
  109. * @return void
  110. */
  111. public function setTotalShipments($totalShipments)
  112. {
  113. $this->totalShipments = $totalShipments;
  114. }
  115. /**
  116. * @return string
  117. */
  118. public function getDocumentation()
  119. {
  120. return $this->documentation;
  121. }
  122. /**
  123. * @param string $documentation
  124. * @return void
  125. */
  126. public function setDocumentation($documentation)
  127. {
  128. $this->documentation = $documentation;
  129. }
  130. }