Shipment.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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\DataObject;
  6. use Temando\Shipping\Rest\Response\Fields\ShipmentAttributes;
  7. use Temando\Shipping\Rest\Response\Meta\ShipmentMeta;
  8. /**
  9. * Temando API Location Resource Object
  10. *
  11. * @package Temando\Shipping\Rest
  12. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  13. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  14. * @link https://www.temando.com/
  15. */
  16. class Shipment extends AbstractResource
  17. {
  18. /**
  19. * @var \Temando\Shipping\Rest\Response\Fields\ShipmentAttributes
  20. */
  21. private $attributes;
  22. /**
  23. * @var \Temando\Shipping\Rest\Response\Fields\LocationAttributes[]
  24. */
  25. private $locations;
  26. /**
  27. * @var \Temando\Shipping\Rest\Response\Meta\ShipmentMeta
  28. */
  29. private $meta;
  30. /**
  31. * @return \Temando\Shipping\Rest\Response\Fields\ShipmentAttributes
  32. */
  33. public function getAttributes()
  34. {
  35. return $this->attributes;
  36. }
  37. /**
  38. * @param \Temando\Shipping\Rest\Response\Fields\ShipmentAttributes $attributes
  39. * @return void
  40. */
  41. public function setAttributes(ShipmentAttributes $attributes)
  42. {
  43. $this->attributes = $attributes;
  44. }
  45. /**
  46. * @return \Temando\Shipping\Rest\Response\Fields\LocationAttributes[]
  47. */
  48. public function getLocations()
  49. {
  50. return $this->locations;
  51. }
  52. /**
  53. * @param \Temando\Shipping\Rest\Response\Fields\LocationAttributes[] $locations
  54. * @return void
  55. */
  56. public function setLocations(array $locations)
  57. {
  58. $this->locations = $locations;
  59. }
  60. /**
  61. * @return \Temando\Shipping\Rest\Response\Meta\ShipmentMeta
  62. */
  63. public function getMeta()
  64. {
  65. return $this->meta;
  66. }
  67. /**
  68. * @param \Temando\Shipping\Rest\Response\Meta\ShipmentMeta $meta
  69. * @return void
  70. */
  71. public function setMeta(ShipmentMeta $meta)
  72. {
  73. $this->meta = $meta;
  74. }
  75. }