ResourceIdentifier.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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\Fields\Relationship;
  6. /**
  7. * Temando API Relationship Object Details
  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 ResourceIdentifier
  15. {
  16. /**
  17. * @var string
  18. */
  19. private $type;
  20. /**
  21. * @var string
  22. */
  23. private $id;
  24. /**
  25. * @return string
  26. */
  27. public function getType()
  28. {
  29. return $this->type;
  30. }
  31. /**
  32. * @param string $type
  33. */
  34. public function setType($type)
  35. {
  36. $this->type = $type;
  37. }
  38. /**
  39. * @return string
  40. */
  41. public function getId()
  42. {
  43. return $this->id;
  44. }
  45. /**
  46. * @param string $id
  47. */
  48. public function setId($id)
  49. {
  50. $this->id = $id;
  51. }
  52. }