Skip to content
PHP Ecosystem
Explore

ServerVariableGroup

API reference › Debug Core › Panel › Request › ServerVariableGroup

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

Groups captured server variables for the Request panel without changing their diagnostic values.

PropertyTypeDescriptionDefined by
$collapsed readonly constructorboolWhether the group should be initially collapsed. Default: false.ServerVariableGroup
$entries readonly constructorarray<int|string, mixed>Captured server variables within the group.ServerVariableGroup
$id readonly constructorstringIdentifier for the server variable group.ServerVariableGroup
$label readonly constructorstringHuman-readable label for the server variable group.ServerVariableGroup
MethodDescriptionDefined by
__construct()Creates a group of captured server variables.ServerVariableGroup
public function __construct(string $id, string $label, array<int|string, mixed> $entries, bool $collapsed = false)

Creates a group of captured server variables.

Parameters

ParameterTypeDescription
$idstringIdentifier for the server variable group.
$labelstringHuman-readable label for the server variable group.
$entriesarray<int|string, mixed>Captured server variables within the group.
$collapsedboolWhether the group should be initially collapsed.