Skip to content
PHP Ecosystem
Explore

RequestDiagnosticValueRenderer

API reference › Debug Core › Panel › Request › RequestDiagnosticValueRenderer

final classPHPForge\Debug\Panel\Request\RequestDiagnosticValueRenderer
Sourcesrc/Panel/Request/RequestDiagnosticValueRenderer.php

Renders captured Request diagnostics without changing their stored values.

MethodDescriptionDefined by
escape() staticEscapes a diagnostic label while substituting malformed UTF-8 bytes.RequestDiagnosticValueRenderer
header() staticRenders a header value, preserving repeated header lines as distinct ordered values.RequestDiagnosticValueRenderer
value() staticRenders a captured scalar as readable text and falls back to the diagnostic dumper for structured values.RequestDiagnosticValueRenderer
public static function escape(string $value): string

Escapes a diagnostic label while substituting malformed UTF-8 bytes.

Parameters

ParameterTypeDescription
$valuestringDiagnostic label to escape.

Returns

string: Escaped label with malformed bytes substituted.

public static function header(mixed $value): string

Renders a header value, preserving repeated header lines as distinct ordered values.

Parameters

ParameterTypeDescription
$valuemixedCaptured header value.

Returns

string: Clamped list markup for repeated lines, or the single rendered value.

public static function value(mixed $value): string

Renders a captured scalar as readable text and falls back to the diagnostic dumper for structured values.

Parameters

ParameterTypeDescription
$valuemixedCaptured diagnostic value.

Returns

string: Clamped markup carrying the rendered value.