diff --git a/src/Models/Location.php b/src/Models/Location.php index 65fa3d2..87ceb8c 100644 --- a/src/Models/Location.php +++ b/src/Models/Location.php @@ -6,11 +6,19 @@ class Location { - public function __construct( - public string $city, - public string $road, - public string $district, - public string $comment, - ) { + public string $city; + + public string $road; + + public ?string $district; + + public string $comment; + + public function __construct(string $city, string $road, ?string $district, string $comment) + { + $this->city = $city; + $this->road = $road; + $this->district = $district; + $this->comment = $comment; } }