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