Files
izyim/app/Classes/Modules/FreightForwarder/DataTransferObjects/ServiceObject.php
T
2019-07-18 22:25:16 +08:00

89 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 int|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|int $type
* @param int|null $forwarderId
* @param null|String $name
* @param null|String $description
* @param float|null $cost
*/
public function __construct(?int $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|int
*/
public function getType(): ?int
{
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;
}
}