GetLocation.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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\Location;
  7. /**
  8. * Temando API Get Location 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 GetLocation implements GetLocationInterface
  16. {
  17. /**
  18. * @var \Temando\Shipping\Rest\Response\DataObject\Location
  19. */
  20. private $data;
  21. /**
  22. * Obtain response entity
  23. *
  24. * @return \Temando\Shipping\Rest\Response\DataObject\Location
  25. */
  26. public function getData()
  27. {
  28. return $this->data;
  29. }
  30. /**
  31. * Set response entity
  32. *
  33. * @param \Temando\Shipping\Rest\Response\DataObject\Location $location
  34. * @return void
  35. */
  36. public function setData(Location $location)
  37. {
  38. $this->data = $location;
  39. }
  40. }