12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Sales\Model\Order\Invoice;
- use Magento\Sales\Api\Data\InvoiceItemCreationInterface;
- /**
- * Class LineItem
- */
- class ItemCreation implements InvoiceItemCreationInterface
- {
- /**
- * @var int
- */
- private $orderItemId;
- /**
- * @var float
- */
- private $qty;
- /**
- * @var \Magento\Sales\Api\Data\InvoiceItemCreationExtensionInterface
- */
- private $extensionAttributes;
- /**
- * {@inheritdoc}
- */
- public function getOrderItemId()
- {
- return $this->orderItemId;
- }
- /**
- * {@inheritdoc}
- */
- public function setOrderItemId($orderItemId)
- {
- $this->orderItemId = $orderItemId;
- }
- /**
- * {@inheritdoc}
- */
- public function getQty()
- {
- return $this->qty;
- }
- /**
- * {@inheritdoc}
- */
- public function setQty($qty)
- {
- $this->qty = $qty;
- }
- /**
- * Retrieve existing extension attributes object or create a new one.
- *
- * @return \Magento\Sales\Api\Data\InvoiceItemCreationExtensionInterface|null
- */
- public function getExtensionAttributes()
- {
- return $this->extensionAttributes;
- }
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\Sales\Api\Data\InvoiceItemCreationExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(
- \Magento\Sales\Api\Data\InvoiceItemCreationExtensionInterface $extensionAttributes
- ) {
- $this->extensionAttributes = $extensionAttributes;
- return $this;
- }
- }
|