mirror of
https://gitlab.com/omair-personal/izyim.git
synced 2026-08-19 20:34:09 +00:00
174 lines
3.6 KiB
PHP
174 lines
3.6 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\FreightForwarder\DataTransferObjects;
|
|
|
|
class FreightForwarderObject
|
|
{
|
|
/** @var string|null */
|
|
private $name;
|
|
|
|
/** @var string|null */
|
|
private $email;
|
|
|
|
/** @var string|null */
|
|
private $street_one;
|
|
|
|
/** @var string|null */
|
|
private $street_two;
|
|
|
|
/** @var string|null */
|
|
private $city;
|
|
|
|
/** @var string|null */
|
|
private $state;
|
|
|
|
/** @var string|null */
|
|
private $post_code;
|
|
|
|
/** @var string|null */
|
|
private $country;
|
|
|
|
/** @var float|null */
|
|
private $shipping_rate;
|
|
|
|
/** @var int|null */
|
|
private $overdue_days;
|
|
|
|
/** @var float|null */
|
|
private $markup_percentage;
|
|
|
|
/** @var float|null */
|
|
private $minimum_cbm;
|
|
|
|
/**
|
|
* FreightForwarderObject constructor.
|
|
* @param null|string $name
|
|
* @param null|string $email
|
|
* @param null|string $street_one
|
|
* @param null|string $street_two
|
|
* @param null|string $city
|
|
* @param null|string $state
|
|
* @param null|string $post_code
|
|
* @param null|string $country
|
|
* @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, ?float $minimum_cbm = null)
|
|
{
|
|
$this->name = $name;
|
|
$this->email = $email;
|
|
$this->street_one = $street_one;
|
|
$this->street_two = $street_two;
|
|
$this->city = $city;
|
|
$this->state = $state;
|
|
$this->post_code = $post_code;
|
|
$this->country = $country;
|
|
$this->shipping_rate = $shipping_rate;
|
|
$this->overdue_days = $overdue_days;
|
|
$this->markup_percentage = $markup_percentage;
|
|
$this->minimum_cbm = $minimum_cbm;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getName(): ?string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getEmail(): ?string
|
|
{
|
|
return $this->email;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getStreetOne(): ?string
|
|
{
|
|
return $this->street_one;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getStreetTwo(): ?string
|
|
{
|
|
return $this->street_two;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getCity(): ?string
|
|
{
|
|
return $this->city;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getState(): ?string
|
|
{
|
|
return $this->state;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getPostCode(): ?string
|
|
{
|
|
return $this->post_code;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getCountry(): ?string
|
|
{
|
|
return $this->country;
|
|
}
|
|
|
|
/**
|
|
* @return float|null
|
|
*/
|
|
public function getShippingRate(): ?float
|
|
{
|
|
return $this->shipping_rate;
|
|
}
|
|
|
|
/**
|
|
* @return int|null
|
|
*/
|
|
public function getOverdueDays(): ?int
|
|
{
|
|
return $this->overdue_days;
|
|
}
|
|
|
|
/**
|
|
* @return float|null
|
|
*/
|
|
public function getMarkupPercentage(): ?float
|
|
{
|
|
return $this->markup_percentage;
|
|
}
|
|
|
|
/**
|
|
* @return float|null
|
|
*/
|
|
public function getMinimumCbm(): ?float
|
|
{
|
|
return $this->minimum_cbm;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} |