public function setMethod($value) { $this->setViewState('Method', TPropertyValue::ensureEnum($value, 'post', 'get'), 'post'); }