GetFulfillments.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 Get Fulfillment Collection 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 GetFulfillments implements GetFulfillmentsInterface
  15. {
  16. /**
  17. * @var \Temando\Shipping\Rest\Response\DataObject\Fulfillment[]
  18. */
  19. private $data = [];
  20. /**
  21. * Obtain response entity
  22. *
  23. * @return \Temando\Shipping\Rest\Response\DataObject\Fulfillment[]
  24. */
  25. public function getData()
  26. {
  27. return $this->data;
  28. }
  29. /**
  30. * Set response entity
  31. *
  32. * @param \Temando\Shipping\Rest\Response\DataObject\Fulfillment[] $fulfillments
  33. * @return void
  34. */
  35. public function setData(array $fulfillments)
  36. {
  37. $this->data = $fulfillments;
  38. }
  39. }