Experience.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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\DataObject;
  6. use Temando\Shipping\Rest\Response\Fields\ExperienceAttributes;
  7. /**
  8. * Temando API Experience Resource Object
  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 Experience
  16. {
  17. /**
  18. * @var string
  19. */
  20. private $id;
  21. /**
  22. * @var string
  23. */
  24. private $type;
  25. /**
  26. * @var \Temando\Shipping\Rest\Response\Fields\ExperienceAttributes
  27. */
  28. private $attributes;
  29. /**
  30. * @return int
  31. */
  32. public function getId()
  33. {
  34. return $this->id;
  35. }
  36. /**
  37. * @param $id $id
  38. * @return void
  39. */
  40. public function setId($id)
  41. {
  42. $this->id = $id;
  43. }
  44. /**
  45. * @return string
  46. */
  47. public function getType()
  48. {
  49. return $this->type;
  50. }
  51. /**
  52. * @param string $type
  53. * @return void
  54. */
  55. public function setType($type)
  56. {
  57. $this->type = $type;
  58. }
  59. /**
  60. * @return \Temando\Shipping\Rest\Response\Fields\ExperienceAttributes
  61. */
  62. public function getAttributes()
  63. {
  64. return $this->attributes;
  65. }
  66. /**
  67. * @param \Temando\Shipping\Rest\Response\Fields\ExperienceAttributes $attributes
  68. * @return void
  69. */
  70. public function setAttributes(ExperienceAttributes $attributes)
  71. {
  72. $this->attributes = $attributes;
  73. }
  74. }