mirror of
https://gitlab.com/omair-personal/izyim.git
synced 2026-08-22 22:03:57 +00:00
invoice-backend
This commit is contained in:
+20
-17
@@ -5,26 +5,26 @@ namespace App\Classes\Modules\FreightForwarder\DataTransferObjects;
|
||||
|
||||
class CustomerRelationObject
|
||||
{
|
||||
/** @var int|null */
|
||||
/** @var int */
|
||||
private $forwarderId;
|
||||
|
||||
/** @var int|null */
|
||||
/** @var int */
|
||||
private $companyId;
|
||||
|
||||
/** @var float|null */
|
||||
/** @var float */
|
||||
private $customer_rate;
|
||||
|
||||
/** @var boolean|null */
|
||||
/** @var bool */
|
||||
private $wave;
|
||||
|
||||
/**
|
||||
* CustomerRelationObject constructor.
|
||||
* @param int|null $forwarderId
|
||||
* @param int|null $companyId
|
||||
* @param float|null $customer_rate
|
||||
* @param bool|null $wave
|
||||
* @param int $forwarderId
|
||||
* @param int $companyId
|
||||
* @param float $customer_rate
|
||||
* @param bool $wave
|
||||
*/
|
||||
public function __construct(?int $forwarderId = null, ?int $companyId = null, ?float $customer_rate = null, ?bool $wave = null)
|
||||
public function __construct(int $forwarderId, int $companyId, float $customer_rate, bool $wave = false)
|
||||
{
|
||||
$this->forwarderId = $forwarderId;
|
||||
$this->companyId = $companyId;
|
||||
@@ -33,33 +33,33 @@ class CustomerRelationObject
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
* @return int
|
||||
*/
|
||||
public function getForwarderId(): ?int
|
||||
public function getForwarderId(): int
|
||||
{
|
||||
return $this->forwarderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
* @return int
|
||||
*/
|
||||
public function getCompanyId(): ?int
|
||||
public function getCompanyId(): int
|
||||
{
|
||||
return $this->companyId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return float|null
|
||||
* @return float
|
||||
*/
|
||||
public function getCustomerRate(): ?float
|
||||
public function getCustomerRate(): float
|
||||
{
|
||||
return $this->customer_rate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool|null
|
||||
* @return bool
|
||||
*/
|
||||
public function getWave(): ?bool
|
||||
public function isWave(): bool
|
||||
{
|
||||
return $this->wave;
|
||||
}
|
||||
@@ -67,4 +67,7 @@ class CustomerRelationObject
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user