/** * Sets the info window open event. * * @param string $openEvent The info window open event. * * @throws \Ivory\GoogleMap\Exception\OverlayException If the open event is not valid. */ public function setOpenEvent($openEvent) { if (!in_array($openEvent, MouseEvent::getMouseEvents())) { throw OverlayException::invalidInfoWindowOpenEvent(); } $this->openEvent = $openEvent; }