public function renderAs($renderAs, array $widgetAttributes = array()) { $this->renderAs = $renderAs; $this->widgetAttributes = $widgetAttributes; return $this; }