feat: multiple hotelcodes assignable to users

This commit is contained in:
Björn Fromme
2025-01-08 10:07:19 +01:00
parent 5a07d95837
commit c15188c43c
16 changed files with 256 additions and 67 deletions
@@ -9,7 +9,7 @@ class CrmAttributesResponse
private bool $manager = false;
private bool $houseManager = false;
private bool $teamer = false;
private ?string $hotelCode = null;
private array $hotelCodes = [];
public function getAttributeGroups(): ?array
{
@@ -70,14 +70,14 @@ class CrmAttributesResponse
return $this;
}
public function getHotelCode(): ?string
public function getHotelCodes(): array
{
return $this->hotelCode;
return $this->hotelCodes;
}
public function setHotelCode(?string $hotelCode): static
public function setHotelCodes(array $hotelCodes): static
{
$this->hotelCode = $hotelCode;
$this->hotelCodes = $hotelCodes;
return $this;
}