CarrierIntegrationAttributes.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 Carrier Configuration Resource Object Attributes
  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 CarrierIntegrationAttributes
  15. {
  16. /**
  17. * @var string
  18. */
  19. private $name;
  20. /**
  21. * @var string
  22. */
  23. private $description;
  24. /**
  25. * @var string
  26. */
  27. private $logo;
  28. /**
  29. * @var \Temando\Shipping\Rest\Response\Fields\CarrierIntegration\Service[]
  30. */
  31. private $services = [];
  32. /**
  33. * @return string
  34. */
  35. public function getName()
  36. {
  37. return $this->name;
  38. }
  39. /**
  40. * @param string $name
  41. * @return void
  42. */
  43. public function setName($name)
  44. {
  45. $this->name = $name;
  46. }
  47. /**
  48. * @return string
  49. */
  50. public function getDescription()
  51. {
  52. return $this->description;
  53. }
  54. /**
  55. * @param string $description
  56. * @return void
  57. */
  58. public function setDescription($description)
  59. {
  60. $this->description = $description;
  61. }
  62. /**
  63. * @return string
  64. */
  65. public function getLogo()
  66. {
  67. return $this->logo;
  68. }
  69. /**
  70. * @param string $logo
  71. * @return void
  72. */
  73. public function setLogo($logo)
  74. {
  75. $this->logo = $logo;
  76. }
  77. /**
  78. * @return \Temando\Shipping\Rest\Response\Fields\CarrierIntegration\Service[]
  79. */
  80. public function getServices()
  81. {
  82. return $this->services;
  83. }
  84. /**
  85. * @param \Temando\Shipping\Rest\Response\Fields\CarrierIntegration\Service[] $services
  86. * @return void
  87. */
  88. public function setServices(array $services)
  89. {
  90. $this->services = $services;
  91. }
  92. }