ContainerAttributes.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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 Container 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 ContainerAttributes
  15. {
  16. /**
  17. * @var string
  18. */
  19. private $name;
  20. /**
  21. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Dimensions
  22. */
  23. private $outerDimensions;
  24. /**
  25. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Dimensions
  26. */
  27. private $innerDimensions;
  28. /**
  29. * @var string
  30. */
  31. private $type;
  32. /**
  33. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Value
  34. */
  35. private $maximumWeight;
  36. /**
  37. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Value
  38. */
  39. private $tareWeight;
  40. /**
  41. * @return string
  42. */
  43. public function getName()
  44. {
  45. return $this->name;
  46. }
  47. /**
  48. * @param string $name
  49. * @return void
  50. */
  51. public function setName($name)
  52. {
  53. $this->name = $name;
  54. }
  55. /**
  56. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Dimensions
  57. */
  58. public function getOuterDimensions()
  59. {
  60. return $this->outerDimensions;
  61. }
  62. /**
  63. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Dimensions $outerDimensions
  64. * @return void
  65. */
  66. public function setOuterDimensions($outerDimensions)
  67. {
  68. $this->outerDimensions = $outerDimensions;
  69. }
  70. /**
  71. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Dimensions
  72. */
  73. public function getInnerDimensions()
  74. {
  75. return $this->innerDimensions;
  76. }
  77. /**
  78. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Dimensions $innerDimensions
  79. * @return void
  80. */
  81. public function setInnerDimensions($innerDimensions)
  82. {
  83. $this->innerDimensions = $innerDimensions;
  84. }
  85. /**
  86. * @return string
  87. */
  88. public function getType()
  89. {
  90. return $this->type;
  91. }
  92. /**
  93. * @param string $type
  94. * @return void
  95. */
  96. public function setType($type)
  97. {
  98. $this->type = $type;
  99. }
  100. /**
  101. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Value
  102. */
  103. public function getMaximumWeight()
  104. {
  105. return $this->maximumWeight;
  106. }
  107. /**
  108. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Value $maximumWeight
  109. * @return void
  110. */
  111. public function setMaximumWeight($maximumWeight)
  112. {
  113. $this->maximumWeight = $maximumWeight;
  114. }
  115. /**
  116. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Value
  117. */
  118. public function getTareWeight()
  119. {
  120. return $this->tareWeight;
  121. }
  122. /**
  123. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Value $tareWeight
  124. * @return void
  125. */
  126. public function setTareWeight($tareWeight)
  127. {
  128. $this->tareWeight = $tareWeight;
  129. }
  130. }