/**
  * Sets if the info window auto open.
  *
  * @param boolean $autoOpen TRUE if the info window auto open on event else FALSE.
  *
  * @throws \Ivory\GoogleMap\Exception\OverlayException If the auto open flag is not valid.
  */
 public function setAutoOpen($autoOpen)
 {
     if (!is_bool($autoOpen)) {
         throw OverlayException::invalidInfoWindowAutoOpen();
     }
     $this->autoOpen = $autoOpen;
 }