public static function invalidDistanceMatrixRequestTravelMode()
    {
        $travelModes = array_diff(TravelMode::getTravelModes(), array(TravelMode::TRANSIT));

        return new static(sprintf(
            'The distance matrix request travel mode can only be : %s.',
            implode(', ', $travelModes)
        ));
    }
public static function invalidDistanceMatrixRequestTravelMode()
    {
        $travelModes = array_diff(TravelMode::getTravelModes(), array(TravelMode::TRANSIT));

        return new static(sprintf(
            'The distance matrix request travel mode can only be : %s.',
            implode(', ', $travelModes)
        ));
    }
public static function invalidDistanceMatrixRequestTravelMode ( ) { $ travelModes = array_diff ( TravelMode :: getTravelModes ( ) , array ( TravelMode :: TRANSIT ) ) ; return new static ( sprintf ( 'The distance matrix request travel mode can only be : %s.' , implode ( ', ' , $ travelModes ) ) ) ; }
Gets the "INVALID DISTANCE MATRIX REQUEST TRAVEL MODE" exception.

@return \Ivory\GoogleMap\Exception\DistanceMatrixException The "INVALID DISTANCE MATRIX REQUEST TRAVEL MODE" exception.
Gets the INVALID DISTANCE MATRIX REQUEST TRAVEL MODE exception .