Your IP : 216.73.216.220


Current Path : /home/rtorresani/www/vendor/magento/module-inventory-source-deduction-api/Model/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-inventory-source-deduction-api/Model/ItemToDeduct.php

<?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;
    }
}