invoice-backend

This commit is contained in:
mhmj
2019-07-20 11:51:34 +08:00
parent 6c532dd738
commit c11e8dc061
11 changed files with 75 additions and 185 deletions
@@ -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
}