/** * Sets the latitude * * @param double $latitude The latitude. * * @throws \Ivory\GoogleMap\Exception\BaseException If the latitude is not valid. */ public function setLatitude($latitude) { if (!is_numeric($latitude) && $latitude !== null) { throw BaseException::invalidCoordinateLatitude(); } $this->latitude = $latitude; }