QualifyOrder.php 1.6 KB

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