/**
  * Gets the "INVALID MAP TYPE CONTROL STYLE" exception.
  *
  * @return \Ivory\GoogleMap\Exception\ControlException The "INVALID MAP TYPE CONTROL STYLE" exception.
  */
 public static function invalidMapTypeControlStyle()
 {
     return new static(sprintf('The map type control style can only be : %s.', implode(', ', MapTypeControlStyle::getMapTypeControlStyles())));
 }
 /**
  * Sets the map type control style.
  *
  * @param type $mapTypeControlStyle The map type control style.
  *
  * @throws \Ivory\GoogleMap\Exception\ControlException If the map type control style is not valid.
  */
 public function setMapTypeControlStyle($mapTypeControlStyle)
 {
     if (!in_array($mapTypeControlStyle, MapTypeControlStyle::getMapTypeControlStyles())) {
         throw ControlException::invalidMapTypeControlStyle();
     }
     $this->mapTypeControlStyle = $mapTypeControlStyle;
 }
 public function testMapTypeControlStyles()
 {
     $expected = array(MapTypeControlStyle::DEFAULT_, MapTypeControlStyle::DROPDOWN_MENU, MapTypeControlStyle::HORIZONTAL_BAR);
     $this->assertSame($expected, MapTypeControlStyle::getMapTypeControlStyles());
 }