Skip to content
PHP Ecosystem
Explore

SnapshotReadResult

API reference › Debug Core › Storage › SnapshotReadResult

final readonly classPHPForge\Debug\Storage\SnapshotReadResult
Sourcesrc/Storage/SnapshotReadResult.php

Exposes a snapshot read together with an optional storage diagnostic.

PropertyTypeDescriptionDefined by
$error readonly constructorStorageException|nullThe storage error, if any.SnapshotReadResult
$snapshot readonly constructorDebugSnapshot|nullThe read snapshot, if available.SnapshotReadResult
MethodDescriptionDefined by
__construct()Creates a snapshot read result with an optional diagnostic.SnapshotReadResult
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

ParameterTypeDescription
$snapshotDebugSnapshot|nullThe read snapshot, if available.
$errorStorageException|nullThe storage error, if any.