field = $field; $this->message = $message; } /** * Get the field associated with the error. * * @return string */ public function getField() { return $this->field; } /** * Get the error message (i18n key). * * @return string */ public function getMessage() { return $this->message; } } if (!PKP_STRICT_MODE) { class_alias('\PKP\form\FormError', '\FormError'); }