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
@@ -11,7 +11,7 @@ namespace App\Classes\Modules\FreightForwarder\DataTransferObjects;
class ServiceObject
{
/** @var String|null */
/** @var int|null */
private $type;
/** @var int|null */
@@ -28,13 +28,13 @@ class ServiceObject
/**
* ServiceObject constructor.
* @param null|String $type
* @param null|int $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)
public function __construct(?int $type = null, ?int $forwarderId = null, ?string $name = null, ?string $description = null, ?float $cost = null)
{
$this->type = $type;
$this->forwarderId = $forwarderId;
@@ -44,9 +44,9 @@ class ServiceObject
}
/**
* @return null|String
* @return null|int
*/
public function getType(): ?string
public function getType(): ?int
{
return $this->type;
}
@@ -83,4 +83,7 @@ class ServiceObject
return $this->cost;
}
}