src/Services/Directions/DirectionsRequest.php
public function setAvoidTolls($avoidTolls = null)
    {
        if (!is_bool($avoidTolls) && ($avoidTolls !== null)) {
            throw DirectionsException::invalidDirectionsRequestAvoidTolls();
        }

        $this->avoidTolls = $avoidTolls;
    }
public function setAvoidTolls($avoidTolls = null)
    {
        if (!is_bool($avoidTolls) && ($avoidTolls !== null)) {
            throw DirectionsException::invalidDirectionsRequestAvoidTolls();
        }

        $this->avoidTolls = $avoidTolls;
    }
Sets if the the directions request avoids tolls.

@param boolean $avoidTolls TRUE if the directions request avoids tolls else FALSE.

@throws \Ivory\GoogleMap\Exception\DirectionsException If the avoid tolls flag is not valid.