field = $field; $this->message = $message; } /** * Get the field associated with the error. * @return string */ function getField() { return $this->field; } /** * Get the error message (i18n key). * @return string */ function getMessage() { return $this->message; } } ?>