name = $name; $this->options = $options; $this->value = $value; $this->paramsArray = $paramsArray; } /** * @return $this */ public function create(): self { $paramsString = $this->createParams($this->paramsArray); $optionsString = $this->createOption($this->options, $this->value); $this->html = ""; return $this; } /** * @param string $name * @param array $options * @param $value * @param array $paramsArray * @return void */ public static function build(string $name, array $options = [], $value = null, array $paramsArray = []): void { $textarea = new self($name, $options, $value, $paramsArray); $textarea->create()->render(); } /** * @param string $title * @return $this */ public function setLabel(string $title): self { $this->html = ""; return $this; } }