From 2951f6d2758cac558bcb4c0bb0cd0c81d1b4ac10 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 30 May 2023 02:37:01 +0200 Subject: [PATCH] remove getId() --- Models/Vehicle.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Models/Vehicle.php b/Models/Vehicle.php index d16c316..fb1b779 100644 --- a/Models/Vehicle.php +++ b/Models/Vehicle.php @@ -14,7 +14,7 @@ declare(strict_types=1); namespace Modules\FleetManagement\Models; -use phpOMS\Localization\BaseStringL11n; +use phpOMS\Localization\BaseStringL11nType; /** * Vehicle class. @@ -32,9 +32,9 @@ class Vehicle implements \JsonSerializable public int $status = VehicleStatus::ACTIVE; - public BaseStringL11n $type; + public BaseStringL11nType $type; - public FuelType $fuelType; + public BaseStringL11nType $fuelType; public string $info = ''; @@ -55,8 +55,8 @@ class Vehicle implements \JsonSerializable public function __construct() { $this->createdAt = new \DateTimeImmutable('now'); - $this->type = new BaseStringL11n(); - $this->fuelType = new FuelType(); + $this->type = new BaseStringL11nType(); + $this->fuelType = new BaseStringL11nType(); } /**