mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 04:23:59 +00:00
83 lines
1.5 KiB
PHP
83 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Packages\DataTransferObjects;
|
|
|
|
use App\Classes\Interfaces\DataTransferObject;
|
|
|
|
class ItemObject implements DataTransferObject
|
|
{
|
|
|
|
/** @var string */
|
|
private $description;
|
|
|
|
/** @var string */
|
|
private $unitOfMeasurment;
|
|
|
|
/** @var float */
|
|
private $quantity;
|
|
|
|
/** @var double */
|
|
private $price;
|
|
|
|
/** @var string */
|
|
private $currency;
|
|
|
|
/**
|
|
* ItemObject constructor.
|
|
* @param string $description
|
|
* @param string $unitOfMeasurment
|
|
* @param float $quantity
|
|
* @param float $price
|
|
* @param string $currency
|
|
*/
|
|
public function __construct(string $description, string $unitOfMeasurment, float $quantity, float $price, string $currency)
|
|
{
|
|
$this->description = $description;
|
|
$this->unitOfMeasurment = $unitOfMeasurment;
|
|
$this->quantity = $quantity;
|
|
$this->price = $price;
|
|
$this->currency = $currency;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getDescription(): string
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getUnitOfMeasurment(): string
|
|
{
|
|
return $this->unitOfMeasurment;
|
|
}
|
|
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getQuantity(): float
|
|
{
|
|
return $this->quantity;
|
|
}
|
|
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getPrice(): float
|
|
{
|
|
return $this->price;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCurrency(): string
|
|
{
|
|
return $this->currency;
|
|
}
|
|
|
|
|
|
} |