refactor: slim the hotel and country base-data models

This commit is contained in:
fromme committed 2026-09-29 13:06:20 +02:00
1 parent aa66c50979
commit db529d2dc9
5 files changed
+3 -91

No files matched your search

-5
View File
@@ -34,13 +34,9 @@ class ResponseMapper
$hotel = new Hotel();
$hotel
->setId($busProId)
->setBusProId($busProId)
->setCode($this->readString($row, 'code'))
->setName($this->readString($row, 'name'))
->setCity($this->readString($row, 'city'))
->setStreet($this->readString($row, 'street'))
->setPhone($this->readString($row, 'phone'))
->setCountry($this->readString($row, 'country'))
->setCountryCode($this->readCountryCode($row))
->setCostUnit($this->readString($row, 'costUnit'))
@@ -97,7 +93,6 @@ class ResponseMapper
$country = new Country();
$country
->setId(isset($row['id']) ? (int) $row['id'] : null)
->setName($this->readString($row, 'name'))
->setToken($token)
->setNationality($this->readString($row, 'nationality'))