Documentation

Class: DebugEvent

Full name: Clarity\Debug\DebugEvent

An immutable debug event: a type, a payload and the time it was emitted.

The timestamp is microtime(true): seconds since the Unix epoch, with a fractional part.

Public Properties

  • public readonly string $type ·
  • public readonly array $payload ·
  • public readonly float $timestamp ·

Public methods

__construct() ·

public function __construct(string $type, array $payload, float $timestamp): mixed

Parameters

Name Type Default Description
$type string -
$payload array -
$timestamp float -

Return value

  • Type: mixed

Back to the Index