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 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