Example #1
0
 /**
  * Sets the circle radius.
  *
  * @param double $radius The circle radius.
  *
  * @throws \Ivory\GoogleMap\Exception\OverlayException If the radius is not valid.
  */
 public function setRadius($radius)
 {
     if (!is_numeric($radius)) {
         throw OverlayException::invalidCircleRadius();
     }
     $this->radius = $radius;
 }