Dumplie\Customer\Application\Query\Result\CartItem::__construct PHP Method

__construct() public method

CartItem constructor.
public __construct ( string $sku, integer $quantity, float $price, string $currency, Metadata $metadata )
$sku string
$quantity integer
$price float
$currency string
$metadata Dumplie\Metadata\Metadata
    public function __construct(string $sku, int $quantity, float $price, string $currency, Metadata $metadata)
    {
        $this->sku = $sku;
        $this->quantity = $quantity;
        $this->price = $price;
        $this->currency = $currency;
        $this->metadata = $metadata;
    }