public function setAvoidHighways($avoidHighways = null)
    {
        if (!is_bool($avoidHighways) && ($avoidHighways !== null)) {
            throw DistanceMatrixException::invalidDistanceMatrixRequestAvoidHighways();
        }

        $this->avoidHighways = $avoidHighways;
    }
public function setAvoidHighways($avoidHighways = null)
    {
        if (!is_bool($avoidHighways) && ($avoidHighways !== null)) {
            throw DistanceMatrixException::invalidDistanceMatrixRequestAvoidHighways();
        }

        $this->avoidHighways = $avoidHighways;
    }
public function setAvoidHighways ( $ avoidHighways = null ) { if ( ! is_bool ( $ avoidHighways ) && ( $ avoidHighways !== null ) ) { throw DistanceMatrixException :: invalidDistanceMatrixRequestAvoidHighways ( ) ; } $ this -> avoidHighways = $ avoidHighways ; }
Sets if the the distance matrix request avoids hightways.

@param boolean $avoidHighways TRUE if the distance matrix request avoids hightways else FALSE.

@throws \Ivory\GoogleMap\Exception\DistanceMatrixException If the avoid highways flag is not valid.
Sets if the the distance matrix request avoids hightways .