Skip to content
PHP Ecosystem
Explore

CaptureLabel

API reference › Debug Core › View › History › CaptureLabel

final classPHPForge\Debug\View\History\CaptureLabel
Sourcesrc/View/History/CaptureLabel.php

Formats unescaped capture-selection labels without shortening their unique identifiers.

MethodDescriptionDefined by
fromSummary() staticBuilds the label identifying one capture in a selection control.CaptureLabel
public static function fromSummary(PHPForge\Debug\Storage\RequestSummary $summary): string

Builds the label identifying one capture in a selection control.

Joins the time, HTTP method, URL, and tag with a middot. The URL is trimmed to 72 columns, while the tag is never shortened, so two captures of the same request stay distinguishable. Missing time or method fall back to a placeholder instead of collapsing the label.

The result is unescaped, so the caller encodes it.

Parameters

ParameterTypeDescription
$summaryPHPForge\Debug\Storage\RequestSummaryCapture the label describes.

Returns

string: Unescaped label for a capture-selection control.