Packaging.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model;
  6. use Magento\Framework\DataObject;
  7. /**
  8. * Temando Packaging Entity
  9. *
  10. * This model contains the data used in the shipping module, not necessarily all
  11. * data available in its webservice representation.
  12. *
  13. * @package Temando\Shipping\Model
  14. * @author Sebastian Ertner <sebastian.ertner@netresearch.de>
  15. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  16. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  17. * @link http://www.temando.com/
  18. */
  19. class Packaging extends DataObject implements PackagingInterface
  20. {
  21. /**
  22. * @return string
  23. */
  24. public function getPackagingId()
  25. {
  26. return $this->getData(self::PACKAGING_ID);
  27. }
  28. /**
  29. * @return string
  30. */
  31. public function getName()
  32. {
  33. return $this->getData(self::NAME);
  34. }
  35. /**
  36. * @return string
  37. */
  38. public function getType()
  39. {
  40. return $this->getData(self::TYPE);
  41. }
  42. /**
  43. * @return string[]
  44. */
  45. public function getWidth()
  46. {
  47. return $this->getData(self::WIDTH);
  48. }
  49. /**
  50. * @return string
  51. */
  52. public function getLength()
  53. {
  54. return $this->getData(self::LENGTH);
  55. }
  56. /**
  57. * @return string
  58. */
  59. public function getHeight()
  60. {
  61. return $this->getData(self::HEIGHT);
  62. }
  63. /**
  64. * @return string
  65. */
  66. public function getTareWeight()
  67. {
  68. return $this->getData(self::TARE_WEIGHT);
  69. }
  70. /**
  71. * @return string
  72. */
  73. public function getMaxWeight()
  74. {
  75. return $this->getData(self::MAX_WEIGHT);
  76. }
  77. }