feat: timeline displaying assignments and dispositions
This commit is contained in:
@@ -147,6 +147,19 @@ class Destination implements TimestampableEntityInterface, SoftDeletableEntityIn
|
||||
return $this->hotelCode;
|
||||
}
|
||||
|
||||
public function getHotelCodeNormalized(): ?string
|
||||
{
|
||||
if (null === $hotelCode = $this->hotelCode) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (str_starts_with($hotelCode, 'SER')) {
|
||||
return substr($hotelCode, 2, 3);
|
||||
}
|
||||
|
||||
return substr($hotelCode, 0, 3);
|
||||
}
|
||||
|
||||
public function setHotelCode(?string $hotelCode): static
|
||||
{
|
||||
$this->hotelCode = $hotelCode;
|
||||
|
||||
Reference in New Issue
Block a user