public function setTemperatureUnits($value)
    {
        if (!TemperatureUnit::getIsValid($value)) {
            throw new InvalidConfigException('Unknown "temperatureUnits" value');
        }
        $this->options['temperatureUnits'] = new JsExpression($value);
    }
public function setTemperatureUnits($value)
    {
        if (!TemperatureUnit::getIsValid($value)) {
            throw new InvalidConfigException('Unknown "temperatureUnits" value');
        }
        $this->options['temperatureUnits'] = new JsExpression($value);
    }
public function setTemperatureUnits ( $ value ) { if ( ! TemperatureUnit :: getIsValid ( $ value ) ) { throw new InvalidConfigException ( 'Unknown "temperatureUnits" value' ) ; } $ this -> options [ 'temperatureUnits' ] = new JsExpression ( $ value ) ; }
Sets the temperatureUnits making sure it is not going to be encoded as a js string.

@param string $value

@throws \yii\base\InvalidConfigException
Sets the temperatureUnits making sure it is not going to be encoded as a js string .