PackageCreation.php 887 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order\Shipment;
  7. /**
  8. * Class PackageCreation
  9. * @api
  10. * @since 100.1.2
  11. */
  12. class PackageCreation implements \Magento\Sales\Api\Data\ShipmentPackageCreationInterface
  13. {
  14. /**
  15. * @var \Magento\Sales\Api\Data\ShipmentPackageCreationExtensionInterface
  16. */
  17. private $extensionAttributes;
  18. /**
  19. * {@inheritdoc}
  20. * @since 100.1.2
  21. */
  22. public function getExtensionAttributes()
  23. {
  24. return $this->extensionAttributes;
  25. }
  26. /**
  27. * {@inheritdoc}
  28. * @since 100.1.2
  29. */
  30. public function setExtensionAttributes(
  31. \Magento\Sales\Api\Data\ShipmentPackageCreationExtensionInterface $extensionAttributes
  32. ) {
  33. $this->extensionAttributes = $extensionAttributes;
  34. return $this;
  35. }
  36. }