Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SourceDeductedOrderItem.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
14 {
18  private $sku;
19 
23  private $quantity;
24 
29  public function __construct(string $sku, float $quantity)
30  {
31  $this->sku = $sku;
32  $this->quantity = $quantity;
33  }
34 
38  public function getSku(): string
39  {
40  return $this->sku;
41  }
42 
46  public function getQuantity(): float
47  {
48  return $this->quantity;
49  }
50 }