mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 12:34:03 +00:00
86 lines
1.6 KiB
PHP
86 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: mhmj
|
|
* Date: 18/07/2019
|
|
* Time: 12:19 PM
|
|
*/
|
|
|
|
namespace App\Classes\Modules\FreightForwarder\DataTransferObjects;
|
|
|
|
|
|
class ServiceObject
|
|
{
|
|
/** @var String|null */
|
|
private $type;
|
|
|
|
/** @var int|null */
|
|
private $forwarderId;
|
|
|
|
/** @var String|null */
|
|
private $name;
|
|
|
|
/** @var String|null */
|
|
private $description;
|
|
|
|
/** @var float|null */
|
|
private $cost;
|
|
|
|
/**
|
|
* ServiceObject constructor.
|
|
* @param null|String $type
|
|
* @param int|null $forwarderId
|
|
* @param null|String $name
|
|
* @param null|String $description
|
|
* @param float|null $cost
|
|
*/
|
|
public function __construct(?string $type = null, ?int $forwarderId = null, ?string $name = null, ?string $description = null, ?float $cost = null)
|
|
{
|
|
$this->type = $type;
|
|
$this->forwarderId = $forwarderId;
|
|
$this->name = $name;
|
|
$this->description = $description;
|
|
$this->cost = $cost;
|
|
}
|
|
|
|
/**
|
|
* @return null|String
|
|
*/
|
|
public function getType(): ?string
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* @return int|null
|
|
*/
|
|
public function getForwarderId(): ?int
|
|
{
|
|
return $this->forwarderId;
|
|
}
|
|
|
|
/**
|
|
* @return null|String
|
|
*/
|
|
public function getName(): ?string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* @return null|String
|
|
*/
|
|
public function getDescription(): ?string
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* @return float|null
|
|
*/
|
|
public function getCost(): ?float
|
|
{
|
|
return $this->cost;
|
|
}
|
|
|
|
} |