public function setStopover($stopover = null)
    {
        if (!is_bool($stopover) && ($stopover !== null)) {
            throw DirectionsException::invalidDirectionsWaypointStopover();
        }

        $this->stopover = $stopover;
    }
public function setStopover($stopover = null)
    {
        if (!is_bool($stopover) && ($stopover !== null)) {
            throw DirectionsException::invalidDirectionsWaypointStopover();
        }

        $this->stopover = $stopover;
    }
public function setStopover ( $ stopover = null ) { if ( ! is_bool ( $ stopover ) && ( $ stopover !== null ) ) { throw DirectionsException :: invalidDirectionsWaypointStopover ( ) ; } $ this -> stopover = $ stopover ; }
Sets the directions waypoint stopover flag.

@param boolean $stopover The directions waypoint stopover flag.
Sets the directions waypoint stopover flag .