SaveOrder.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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\Document;
  6. use Temando\Shipping\Rest\Response\DataObject\Order;
  7. /**
  8. * Temando API Save Order Document
  9. *
  10. * @package Temando\Shipping\Rest
  11. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  12. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  13. * @link https://www.temando.com/
  14. */
  15. class SaveOrder implements SaveOrderInterface
  16. {
  17. /**
  18. * @var \Temando\Shipping\Rest\Response\DataObject\Order
  19. */
  20. private $order;
  21. /**
  22. * @var \Temando\Shipping\Rest\Response\DataObject\Shipment[]
  23. */
  24. private $included;
  25. /**
  26. * @return \Temando\Shipping\Rest\Response\DataObject\Order
  27. */
  28. public function getData()
  29. {
  30. return $this->order;
  31. }
  32. /**
  33. * @param \Temando\Shipping\Rest\Response\DataObject\Order $order
  34. * @return void
  35. */
  36. public function setData(Order $order)
  37. {
  38. $this->order = $order;
  39. }
  40. /**
  41. * @return \Temando\Shipping\Rest\Response\DataObject\Shipment[]
  42. */
  43. public function getIncluded()
  44. {
  45. return $this->included;
  46. }
  47. /**
  48. * @param \Temando\Shipping\Rest\Response\DataObject\Shipment[] $included
  49. * @return void
  50. */
  51. public function setIncluded(array $included)
  52. {
  53. $this->included = $included;
  54. }
  55. }