GetCarrierConfigurations.php 1.1 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 Carrier Configuration 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 GetCarrierConfigurations implements GetCarrierConfigurationsInterface
  15. {
  16. /**
  17. * @var \Temando\Shipping\Rest\Response\DataObject\CarrierConfiguration[]
  18. */
  19. private $data = [];
  20. /**
  21. * Obtain response entities
  22. *
  23. * @return \Temando\Shipping\Rest\Response\DataObject\CarrierConfiguration[]
  24. */
  25. public function getData()
  26. {
  27. return $this->data;
  28. }
  29. /**
  30. * Set response entities
  31. *
  32. * @param \Temando\Shipping\Rest\Response\DataObject\CarrierConfiguration[] $configurations
  33. *
  34. * @return void
  35. */
  36. public function setData(array $configurations)
  37. {
  38. $this->data = $configurations;
  39. }
  40. }