/**
  * Sets the zoom control style.
  *
  * @param string $zoomControlStyle The zoom control style.
  *
  * @throws \Ivory\GoogleMap\Exception\ControlException If the zoom control style is not valid.
  */
 public function setZoomControlStyle($zoomControlStyle)
 {
     if (!in_array($zoomControlStyle, ZoomControlStyle::getZoomControlStyles())) {
         throw ControlException::invalidZoomControlStyle();
     }
     $this->zoomControlStyle = $zoomControlStyle;
 }
 /**
  * Gets the "INVALID ZOOM CONTROL STYLE" exception.
  *
  * @return \Ivory\GoogleMap\Exception\ControlException The "INVALID ZOOM CONTROL STYLE" exception.
  */
 public static function invalidZoomControlStyle()
 {
     return new static(sprintf('The zoom control style of a zoom control can only be : %s.', implode(', ', ZoomControlStyle::getZoomControlStyles())));
 }
 public function testZoomControlStyles()
 {
     $expected = array(ZoomControlStyle::DEFAULT_, ZoomControlStyle::LARGE, ZoomControlStyle::SMALL);
     $this->assertSame($expected, ZoomControlStyle::getZoomControlStyles());
 }