WIP: Improve assignment overview for teamers in mobile view
This commit is contained in:
@@ -12,6 +12,7 @@ class Hotel
|
||||
private ?string $street = null;
|
||||
private ?string $phone = null;
|
||||
private ?string $type = null;
|
||||
private ?string $country = null;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
@@ -109,4 +110,15 @@ class Hotel
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCountry(): ?string
|
||||
{
|
||||
return $this->country;
|
||||
}
|
||||
|
||||
public function setCountry(?string $country): static
|
||||
{
|
||||
$this->country = $country;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -227,6 +227,7 @@ class ResponseParser
|
||||
->setBusProId($busProId)
|
||||
->setCode((string) $item->attributes()['code'])
|
||||
->setName($item->xpath('name') ? (string) $item->xpath('name')[0] : null)
|
||||
->setCountry($item->xpath('land') ? strtolower((string) $item->xpath('land')[0]) : null)
|
||||
->setCity($item->xpath('ort') ? (string) $item->xpath('ort')[0] : null)
|
||||
->setStreet($item->xpath('strasse') ? (string) $item->xpath('strasse')[0] : null)
|
||||
->setPhone($item->xpath('telefon') ? (string) $item->xpath('telefon')[0] : null)
|
||||
|
||||
Reference in New Issue
Block a user