Constraints.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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\CollectionPoint;
  6. use Temando\Shipping\Rest\Response\Fields\Generic\Dimensions;
  7. use Temando\Shipping\Rest\Response\Fields\Generic\Value;
  8. /**
  9. * Temando API Collection Point Qualification Collection Point Constraints Field
  10. *
  11. * @package Temando\Shipping\Rest
  12. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  13. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  14. * @link https://www.temando.com/
  15. */
  16. class Constraints
  17. {
  18. /**
  19. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Dimensions
  20. */
  21. private $dimensions;
  22. /**
  23. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Value
  24. */
  25. private $weight;
  26. /**
  27. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Dimensions
  28. */
  29. public function getDimensions()
  30. {
  31. return $this->dimensions;
  32. }
  33. /**
  34. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Dimensions $dimensions
  35. * @return void
  36. */
  37. public function setDimensions(Dimensions $dimensions)
  38. {
  39. $this->dimensions = $dimensions;
  40. }
  41. /**
  42. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Value
  43. */
  44. public function getWeight()
  45. {
  46. return $this->weight;
  47. }
  48. /**
  49. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Value $weight
  50. * @return void
  51. */
  52. public function setWeight(Value $weight)
  53. {
  54. $this->weight = $weight;
  55. }
  56. }