error_class = $error_class; } /** * Returns the failure class. * * @since 1.5.0 * * @return string One of the class constants. */ public function get_error_class(): string { return $this->error_class; } /** * Returns the failure text unescaped, for storage. * * @since 1.5.0 * * @return string The raw message. */ public function get_raw_message(): string { $previous = $this->getPrevious(); return null !== $previous ? $previous->getMessage() : wp_specialchars_decode( $this->getMessage(), ENT_QUOTES ); } }