has_errors()){ throw new Exception($this->get_formatted_errors("text")); } } function get_id(){ return $this->data['id']; } function get_label(){ return $this->data['label']; } }