Skip to content
PHP Ecosystem
Explore

SummaryChip

API reference › Debug Core › View › Grid › SummaryChip

final classPHPForge\Debug\View\Grid\SummaryChip
Sourcesrc/View/Grid/SummaryChip.php

Builds the metric chips and separators composing the summary header of a debug grid.

MethodDescriptionDefined by
render() staticRenders a summary chip with a strong value followed by its label.SummaryChip
separator() staticRenders the separator between summary chips.SummaryChip
public static function render(string $value, string $label): UIAwesome\Html\Phrasing\Span

Renders a summary chip with a strong value followed by its label.

Parameters

ParameterTypeDescription
$valuestringMetric highlighted at the start of the chip.
$labelstringUnit the metric is expressed in, including the space separating it from the value.

Returns

UIAwesome\Html\Phrasing\Span: Rendered chip.

public static function separator(): UIAwesome\Html\Phrasing\Span

Renders the separator between summary chips.

Returns

UIAwesome\Html\Phrasing\Span: Rendered separator.