Skip to content
PHP Ecosystem
Explore

RequestTab

API reference › Debug Core › Panel › Request › RequestTab

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

Typed view-model for one tab in the Request panel detail view.

PropertyTypeDescriptionDefined by
$id readonly constructorstringStable semantic identifier used to compose the shared Request view without coupling adapters to translated presentation labels. Default: ''.RequestTab
$label readonly constructorstringNavigation label shown in the tab strip ('Parameters', 'Headers', 'Session', 'Server').RequestTab
$sections readonly constructorlist<RequestSection>Sections rendered when this tab is active, in display order.RequestTab
MethodDescriptionDefined by
__construct()Creates a tab for the Request panel.RequestTab
public function __construct(string $label, array $sections, string $id = '')

Creates a tab for the Request panel.

Parameters

ParameterTypeDescription
$labelstring
$sectionsarray
$idstring