SnapshotReadResult
API reference › Debug Core › Storage › SnapshotReadResult
Exposes a snapshot read together with an optional storage diagnostic.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$error readonly constructor | StorageException| | The storage error, if any. | SnapshotReadResult |
$snapshot readonly constructor | DebugSnapshot| | The read snapshot, if available. | SnapshotReadResult |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a snapshot read result with an optional diagnostic. | SnapshotReadResult |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(PHPForge\Debug\Storage\DebugSnapshot|null $snapshot, PHPForge\Debug\Storage\StorageException|null $error)Creates a snapshot read result with an optional diagnostic.
Parameters
| Parameter | Type | Description |
|---|---|---|
$snapshot | DebugSnapshot| | The read snapshot, if available. |
$error | StorageException| | The storage error, if any. |