1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- declare(strict_types=1);
- namespace Magento\InventorySourceDeductionApi\Model;
- /**
- * @inheritdoc
- */
- class ItemToDeduct implements ItemToDeductInterface
- {
- /**
- * @var string
- */
- private $sku;
- /**
- * @var float
- */
- private $qty;
- /**
- * @param string $sku
- * @param float $qty
- */
- public function __construct(string $sku, float $qty)
- {
- $this->sku = $sku;
- $this->qty = $qty;
- }
- /**
- * @inheritdoc
- */
- public function getSku(): string
- {
- return $this->sku;
- }
- /**
- * @inheritdoc
- */
- public function getQty(): float
- {
- return $this->qty;
- }
- }
|