public function toArray() { return ['name' => $this->getName(), 'text' => $this->getText(), 'style' => $this->getStyle(), 'type' => $this->getType(), 'value' => $this->getValue(), 'confirm' => $this->getConfirm()->toArray()]; }