mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-27 07:00:29 +01:00
162 lines
2.9 KiB
PHP
162 lines
2.9 KiB
PHP
<?php
|
|
|
|
|
|
namespace Xentral\Modules\Shopware6\Data;
|
|
|
|
|
|
class PriceData
|
|
{
|
|
/** @var int */
|
|
protected $startingQuantity;
|
|
/** @var int|null */
|
|
protected $endingQuantity;
|
|
/** @var float */
|
|
protected $net;
|
|
/** @var float */
|
|
protected $gross;
|
|
/** @var string */
|
|
protected $currency;
|
|
/** @var string */
|
|
protected $groupName;
|
|
|
|
/**
|
|
* PriceData constructor.
|
|
*
|
|
* @param $startingQuantity
|
|
* @param $net
|
|
* @param $gross
|
|
* @param $currency
|
|
* @param $groupName
|
|
*/
|
|
public function __construct(int $startingQuantity, float $net, float $gross, string $currency, string $groupName, int $endingQuantity = null)
|
|
{
|
|
$this->startingQuantity = $startingQuantity;
|
|
$this->net = $net;
|
|
$this->gross = $gross;
|
|
$this->currency = $currency;
|
|
$this->groupName = $groupName;
|
|
$this->endingQuantity = $endingQuantity;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getGroupName(): string
|
|
{
|
|
return $this->groupName;
|
|
}
|
|
|
|
/**
|
|
* @param string $groupName
|
|
*
|
|
* @return PriceData
|
|
*/
|
|
public function setGroupName(string $groupName): PriceData
|
|
{
|
|
$this->groupName = $groupName;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCurrency(): string
|
|
{
|
|
return $this->currency;
|
|
}
|
|
|
|
/**
|
|
* @param string $currency
|
|
*
|
|
* @return PriceData
|
|
*/
|
|
public function setCurrency(string $currency): PriceData
|
|
{
|
|
$this->currency = $currency;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getStartingQuantity(): int
|
|
{
|
|
return $this->startingQuantity;
|
|
}
|
|
|
|
/**
|
|
* @param int $startingQuantity
|
|
*
|
|
* @return PriceData
|
|
*/
|
|
public function setStartingQuantity(int $startingQuantity): PriceData
|
|
{
|
|
$this->startingQuantity = $startingQuantity;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return int|null
|
|
*/
|
|
public function getEndingQuantity(): int|null
|
|
{
|
|
return $this->endingQuantity;
|
|
}
|
|
|
|
/**
|
|
* @param int $endingQuantity
|
|
* @return PriceData
|
|
*/
|
|
public function setEndingQuantity(int $endingQuantity): PriceData
|
|
{
|
|
$this->endingQuantity = $endingQuantity;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getNet(): float
|
|
{
|
|
return $this->net;
|
|
}
|
|
|
|
/**
|
|
* @param float $net
|
|
*
|
|
* @return PriceData
|
|
*/
|
|
public function setNet(float $net): PriceData
|
|
{
|
|
$this->net = $net;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getGross(): float
|
|
{
|
|
return $this->gross;
|
|
}
|
|
|
|
/**
|
|
* @param float $gross
|
|
*
|
|
* @return PriceData
|
|
*/
|
|
public function setGross(float $gross): PriceData
|
|
{
|
|
$this->gross = $gross;
|
|
|
|
return $this;
|
|
}
|
|
|
|
|
|
}
|