Skip to content
PHP Ecosystem
Explore

EventCellRenderer

API reference › Debug Core › Panel › Event › EventCellRenderer

final classPHPForge\Debug\Panel\Event\EventCellRenderer
Sourcesrc/Panel/Event/EventCellRenderer.php

Renders the typed cells of the events grid for the Event debug panel.

MethodDescriptionDefined by
renderClassCell() staticRenders the event class FQCN as a muted namespace prefix plus a bold short name (— when empty).EventCellRenderer
renderSenderCell() staticRenders the sender FQCN as a muted namespace prefix plus a bold short name (— for static events).EventCellRenderer
renderStaticCell() staticRenders a muted static badge for class-level events, or — for object-level ones.EventCellRenderer
renderTimeCell() staticRenders the capture time as H:i:s.mmm, derived from the row’s second-precision timestamp.EventCellRenderer
public static function renderClassCell(PHPForge\Debug\Panel\Event\EventRow $row): string

Renders the event class FQCN as a muted namespace prefix plus a bold short name (— when empty).

Parameters

ParameterTypeDescription
$rowEventRow

Returns

string

public static function renderSenderCell(PHPForge\Debug\Panel\Event\EventRow $row): string

Renders the sender FQCN as a muted namespace prefix plus a bold short name (— for static events).

Parameters

ParameterTypeDescription
$rowEventRow

Returns

string

public static function renderStaticCell(PHPForge\Debug\Panel\Event\EventRow $row): string

Renders a muted static badge for class-level events, or — for object-level ones.

Parameters

ParameterTypeDescription
$rowEventRow

Returns

string

public static function renderTimeCell(PHPForge\Debug\Panel\Event\EventRow $row): string

Renders the capture time as H:i:s.mmm, derived from the row’s second-precision timestamp.

Parameters

ParameterTypeDescription
$rowEventRow

Returns

string