Relationship.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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;
  6. /**
  7. * Temando API Relationship Object
  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 Relationship
  15. {
  16. /**
  17. * @var mixed[]
  18. */
  19. private $links = [];
  20. /**
  21. * @var \Temando\Shipping\Rest\Response\Fields\Relationship\ResourceIdentifier[]
  22. */
  23. private $data;
  24. /**
  25. * @var mixed[]
  26. */
  27. private $meta = [];
  28. /**
  29. * @return mixed[]
  30. */
  31. public function getLinks()
  32. {
  33. return $this->links;
  34. }
  35. /**
  36. * @param mixed[] $links
  37. */
  38. public function setLinks(array $links)
  39. {
  40. $this->links = $links;
  41. }
  42. /**
  43. * @return \Temando\Shipping\Rest\Response\Fields\Relationship\ResourceIdentifier[]
  44. */
  45. public function getData()
  46. {
  47. return $this->data;
  48. }
  49. /**
  50. * @param \Temando\Shipping\Rest\Response\Fields\Relationship\ResourceIdentifier[] $data
  51. */
  52. public function setData(array $data)
  53. {
  54. $this->data = $data;
  55. }
  56. /**
  57. * @return mixed[]
  58. */
  59. public function getMeta()
  60. {
  61. return $this->meta;
  62. }
  63. /**
  64. * @param mixed[] $meta
  65. */
  66. public function setMeta(array $meta)
  67. {
  68. $this->meta = $meta;
  69. }
  70. }