ShipmentItem.php 923 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\Shipment;
  6. use Magento\Framework\DataObject;
  7. /**
  8. * Temando Shipment Item 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 Rhodri Davies <rhodri.davies@temando.com>
  15. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  16. * @link https://www.temando.com
  17. */
  18. class ShipmentItem extends DataObject implements ShipmentItemInterface
  19. {
  20. /**
  21. * @return int
  22. */
  23. public function getQty()
  24. {
  25. return $this->getData(PackageItemInterface::QTY);
  26. }
  27. /**
  28. * @return string
  29. */
  30. public function getSku()
  31. {
  32. return $this->getData(PackageItemInterface::SKU);
  33. }
  34. }