field = $field; } public function setWidth(int $width): self { $this->width = $width; return $this; } public function setAdaptiveWidth(int $adaptive_width): self { $this->adaptive_width = $adaptive_width; return $this; } public function getView(): CTextArea { $view = (new CTextArea($this->field->getName(), $this->field->getValue())) ->setMaxlength($this->field->getMaxLength()) ->setEnabled(!$this->isDisabled()) ->setAriaRequired($this->isRequired()); if ($this->adaptive_width !== null) { $view->setAdaptiveWidth($this->adaptive_width); } else { $view->setWidth($this->width); } return $view; } }