public function setAutoSwitch($value) { $this->setViewState('AutoSwitch', TPropertyValue::ensureBoolean($value)); }