Skip to content
PHP Ecosystem
Explore

RequestSection

API reference › Debug Core › Panel › Request › RequestSection

final readonly classPHPForge\Debug\Panel\Request\RequestSection
Sourcesrc/Panel/Request/RequestSection.php

Typed view-model for one name/value section rendered in the Request panel detail view.

PropertyTypeDescriptionDefined by
$caption readonly constructorstringSection heading shown at the top of the rendered table.RequestSection
$entries readonly constructorarray<int|string, mixed>Name → value entries that populate the table rows.RequestSection
$filterable readonly constructorbooltrue when the renderer should emit a search input next to the caption and wrap the table in a filter target, so the developer can narrow long tables (Session, Server, Headers). Default: false.RequestSection
$id readonly constructorstringStable semantic identifier used when a composed Request view needs to move or omit this section. Default: ''.RequestSection
MethodDescriptionDefined by
__construct()Creates a name/value section for the Request panel.RequestSection
public readonly array<int|string, mixed> $entries

Name → value entries that populate the table rows.

Keys are coerced to strings during rendering and values are dumped via Dump::asString() for a stable, syntax-aware presentation.

public function __construct(string $caption, array $entries, bool $filterable = false, string $id = '')

Creates a name/value section for the Request panel.

Parameters

ParameterTypeDescription
$captionstring
$entriesarray
$filterablebool
$idstring