/** * @desc Adds a button to the form * @param FormButton $button The button to add */ public function add_button(FormButton $button) { $button->set_form_id($this->html_id); $this->buttons[] = $button; }