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
@@ -11,30 +11,30 @@ namespace App\Classes\Modules\FreightForwarder\DataTransferObjects;
class ServiceObject
{
/** @var int|null */
/** @var int */
private $type;
/** @var int|null */
/** @var int */
private $forwarderId;
/** @var String|null */
/** @var String */
private $name;
/** @var String|null */
private $description;
/** @var float|null */
/** @var float */
private $cost;
/**
* ServiceObject constructor.
* @param null|int $type
* @param int|null $forwarderId
* @param int $type
* @param int $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)
public function __construct(int $type, int $forwarderId, string $name, ?string $description, float $cost)
{
$this->type = $type;
$this->forwarderId = $forwarderId;
@@ -44,25 +44,25 @@ class ServiceObject
}
/**
* @return null|int
* @return int
*/
public function getType(): ?int
public function getType(): int
{
return $this->type;
}
/**
* @return int|null
* @return int
*/
public function getForwarderId(): ?int
public function getForwarderId(): int
{
return $this->forwarderId;
}
/**
* @return null|String
* @return String
*/
public function getName(): ?string
public function getName(): String
{
return $this->name;
}
@@ -70,20 +70,17 @@ class ServiceObject
/**
* @return null|String
*/
public function getDescription(): ?string
public function getDescription(): ?String
{
return $this->description;
}
/**
* @return float|null
* @return float
*/
public function getCost(): ?float
public function getCost(): float
{
return $this->cost;
}
}