public function toArray() { return ['title' => $this->getTitle(), 'text' => $this->getText(), 'ok_text' => $this->getOkText(), 'dismiss_text' => $this->getDismissText()]; }