diff --git a/src/Entity/CaseItinerary.php b/src/Entity/CaseItinerary.php index 344e4bf..7eda2ba 100644 --- a/src/Entity/CaseItinerary.php +++ b/src/Entity/CaseItinerary.php @@ -191,4 +191,22 @@ class CaseItinerary } return $points; } + + public function originInfoWindow(): string + { + return <<originLocation->getName()}
+ {$this->originLocation->getFormattedAddress()}
+ {$this->departure->format("g:i a")} + EOL; + } + + public function destinationInfoWindow(): string + { + return <<destLocation->getName()}
+ {$this->destLocation->getFormattedAddress()}
+ {$this->arrival->format("g:i a")} + EOL; + } }