public function setWaypointOrder(array $waypointOrder)
    {
        $this->waypointOrder = array();

        foreach ($waypointOrder as $waypointOrder) {
            $this->addWaypointOrder($waypointOrder);
        }
    }
public function setWaypointOrder(array $waypointOrder)
    {
        $this->waypointOrder = array();

        foreach ($waypointOrder as $waypointOrder) {
            $this->addWaypointOrder($waypointOrder);
        }
    }
public function setWaypointOrder ( array $ waypointOrder ) { $ this -> waypointOrder = array ( ) ; foreach ( $ waypointOrder as $ waypointOrder ) { $ this -> addWaypointOrder ( $ waypointOrder ) ; } }
Sets the routes waypoint order.

@param array $waypointOrder The route waypoint order.
Sets the routes waypoint order .