public function setDestination()
    {
        $args = func_get_args();

        if (isset($args[0]) && is_string($args[0])) {
            $this->destination = $args[0];
        } elseif (isset($args[0]) && ($args[0] instanceof Coordinate)) {
            $this->destination = $args[0];
        } elseif ((isset($args[0]) && is_numeric($args[0])) && (isset($args[1]) && is_numeric($args[1]))) {
            if ($this->destination === null) {
                $this->destination = new Coordinate();
            }

            $this->destination->setLatitude($args[0]);
            $this->destination->setLongitude($args[1]);

            if (isset($args[2]) && is_bool($args[2])) {
                $this->destination->setNoWrap($args[2]);
            }
        } else {
            throw DirectionsException::invalidDirectionsRequestDestination();
        }
    }
public function setDestination()
    {
        $args = func_get_args();

        if (isset($args[0]) && is_string($args[0])) {
            $this->destination = $args[0];
        } elseif (isset($args[0]) && ($args[0] instanceof Coordinate)) {
            $this->destination = $args[0];
        } elseif ((isset($args[0]) && is_numeric($args[0])) && (isset($args[1]) && is_numeric($args[1]))) {
            if ($this->destination === null) {
                $this->destination = new Coordinate();
            }

            $this->destination->setLatitude($args[0]);
            $this->destination->setLongitude($args[1]);

            if (isset($args[2]) && is_bool($args[2])) {
                $this->destination->setNoWrap($args[2]);
            }
        } else {
            throw DirectionsException::invalidDirectionsRequestDestination();
        }
    }
public function setDestination ( ) { $ args = func_get_args ( ) ; if ( isset ( $ args [ 0 ] ) && is_string ( $ args [ 0 ] ) ) { $ this -> destination = $ args [ 0 ] ; } elseif ( isset ( $ args [ 0 ] ) && ( $ args [ 0 ] instanceof Coordinate ) ) { $ this -> destination = $ args [ 0 ] ; } elseif ( ( isset ( $ args [ 0 ] ) && is_numeric ( $ args [ 0 ] ) ) && ( isset ( $ args [ 1 ] ) && is_numeric ( $ args [ 1 ] ) ) ) { if ( $ this -> destination === null ) { $ this -> destination = new Coordinate ( ) ; } $ this -> destination -> setLatitude ( $ args [ 0 ] ) ; $ this -> destination -> setLongitude ( $ args [ 1 ] ) ; if ( isset ( $ args [ 2 ] ) && is_bool ( $ args [ 2 ] ) ) { $ this -> destination -> setNoWrap ( $ args [ 2 ] ) ; } } else { throw DirectionsException :: invalidDirectionsRequestDestination ( ) ; } }
Sets the directions request destination.

Available prototypes:
- function setDestination(string $destination)
- function setDestination(Ivory\GoogleMap\Base\Coordinate $destination)
- function setDestination(double $latitude, double $longitude, boolean $noWrap)

@throws \Ivory\GoogleMap\Exception\DirectionsException If the destination is not valid (prototypes).
Sets the directions request destination .