123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Sales\Model\Order\Shipment;
- use Magento\Sales\Api\Data\ShipmentItemCreationInterface;
- /**
- * Class ItemCreation
- */
- class ItemCreation implements ShipmentItemCreationInterface
- {
- /**
- * @var int
- */
- private $orderItemId;
- /**
- * @var float
- */
- private $qty;
- /**
- * @var \Magento\Sales\Api\Data\ShipmentItemCreationExtensionInterface
- */
- private $extensionAttributes;
- //@codeCoverageIgnoreStart
- /**
- * {@inheritdoc}
- */
- public function getOrderItemId()
- {
- return $this->orderItemId;
- }
- /**
- * {@inheritdoc}
- */
- public function setOrderItemId($orderItemId)
- {
- $this->orderItemId = $orderItemId;
- return $this;
- }
- /**
- * {@inheritdoc}
- */
- public function getQty()
- {
- return $this->qty;
- }
- /**
- * {@inheritdoc}
- */
- public function setQty($qty)
- {
- $this->qty = $qty;
- return $this;
- }
- /**
- * {@inheritdoc}
- *
- * @return \Magento\Sales\Api\Data\ShipmentItemCreationExtensionInterface|null
- */
- public function getExtensionAttributes()
- {
- return $this->extensionAttributes;
- }
- /**
- * {@inheritdoc}
- *
- * @param \Magento\Sales\Api\Data\ShipmentItemCreationExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(
- \Magento\Sales\Api\Data\ShipmentItemCreationExtensionInterface $extensionAttributes
- ) {
- $this->extensionAttributes = $extensionAttributes;
- return $this;
- }
- //@codeCoverageIgnoreEnd
- }
|