public function setTravelMode($value)
    {
        if (!TravelMode::getIsValid($value)) {
            throw new InvalidConfigException('Invalid "travelMode" value');
        }
        $this->options['travelMode'] = new JsExpression($value);
    }
public function setTravelMode($value)
    {
        if (!TravelMode::getIsValid($value)) {
            throw new InvalidConfigException('Invalid "travelMode" value');
        }
        $this->options['travelMode'] = new JsExpression($value);
    }
public function setTravelMode ( $ value ) { if ( ! TravelMode :: getIsValid ( $ value ) ) { throw new InvalidConfigException ( 'Invalid "travelMode" value' ) ; } $ this -> options [ 'travelMode' ] = new JsExpression ( $ value ) ; }
Sets the travelMode

@param string $value

@throws \yii\base\InvalidConfigException
Sets the travelMode