invoice-backend

This commit is contained in:
mhmj
2019-07-18 22:25:16 +08:00
parent 6c55f95229
commit 6c532dd738
11 changed files with 46 additions and 23 deletions
@@ -37,6 +37,9 @@ class FreightForwarderObject
/** @var float|null */
private $markup_percentage;
/** @var float|null */
private $minimum_cbm;
/**
* FreightForwarderObject constructor.
* @param null|string $name
@@ -50,8 +53,9 @@ class FreightForwarderObject
* @param float|null $shipping_rate
* @param int|null $overdue_days
* @param float|null $markup_percentage
* @param float|null $minimum_cbm
*/
public function __construct(?string $name = null, ?string $email = null, ?string $street_one = null, ?string $street_two = null, ?string $city = null, ?string $state = null, ?string $post_code = null, ?string $country = null, ?float $shipping_rate = null, ?int $overdue_days = null, ?float $markup_percentage = null)
public function __construct(?string $name = null, ?string $email = null, ?string $street_one = null, ?string $street_two = null, ?string $city = null, ?string $state = null, ?string $post_code = null, ?string $country = null, ?float $shipping_rate = null, ?int $overdue_days = null, ?float $markup_percentage = null, ?float $minimum_cbm = null)
{
$this->name = $name;
$this->email = $email;
@@ -64,6 +68,7 @@ class FreightForwarderObject
$this->shipping_rate = $shipping_rate;
$this->overdue_days = $overdue_days;
$this->markup_percentage = $markup_percentage;
$this->minimum_cbm = $minimum_cbm;
}
/**
@@ -154,4 +159,16 @@ class FreightForwarderObject
return $this->markup_percentage;
}
/**
* @return float|null
*/
public function getMinimumCbm(): ?float
{
return $this->minimum_cbm;
}
}