/** * Sets the south west coordinate. * * Available prototypes: * - function setSouthWest(Ivory\GoogleMap\Base\Coordinate $southWest = null) * - function setSouthWest(double $latitude, double $longitude, boolean $noWrap = true) * * @throws \Ivory\GoogleMap\Exception\BaseException If the south west coordinate is not valid (prototypes). */ public function setSouthWest() { $args = func_get_args(); if (isset($args[0]) && $args[0] instanceof Coordinate) { $this->southWest = $args[0]; } elseif (isset($args[0]) && is_numeric($args[0]) && (isset($args[1]) && is_numeric($args[1]))) { if ($this->southWest === null) { $this->southWest = new Coordinate(); } $this->southWest->setLatitude($args[0]); $this->southWest->setLongitude($args[1]); if (isset($args[2]) && is_bool($args[2])) { $this->southWest->setNoWrap($args[2]); } } elseif (!isset($args[0])) { $this->southWest = null; } else { throw BaseException::invalidBoundSouthWest(); } }