protected function convertSettingType($type)
    {
        if ($type === SettingType::BOOLEAN_TYPE) {
            $this->setting = filter_var($this->setting, FILTER_VALIDATE_BOOLEAN);
        } else {
            settype($this->setting, $type);
        }
    }
protected function convertSettingType($type)
    {
        if ($type === SettingType::BOOLEAN_TYPE) {
            $this->setting = filter_var($this->setting, FILTER_VALIDATE_BOOLEAN);
        } else {
            settype($this->setting, $type);
        }
    }
protected function convertSettingType ( $ type ) { if ( $ type === SettingType :: BOOLEAN_TYPE ) { $ this -> setting = filter_var ( $ this -> setting , FILTER_VALIDATE_BOOLEAN ) ; } else { settype ( $ this -> setting , $ type ) ; } }
Set type for setting

@param $type
Set type for setting