Skip to content
PHP Ecosystem
Explore

SnapshotWriteResult

API reference › Debug Core › Storage › SnapshotWriteResult

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

Exposes the committed manifest and the summaries evicted by a snapshot write.

PropertyTypeDescriptionDefined by
$entries readonly constructorarray<string, RequestSummary>Committed manifest entries, newest first.SnapshotWriteResult
$removed readonly constructorlist<RequestSummary>Entries evicted from the manifest.SnapshotWriteResult
MethodDescriptionDefined by
__construct()Creates a snapshot write result with the committed manifest and evictions.SnapshotWriteResult
public function __construct(array<string, PHPForge\Debug\Storage\RequestSummary> $entries, list<PHPForge\Debug\Storage\RequestSummary> $removed)

Creates a snapshot write result with the committed manifest and evictions.

Parameters

ParameterTypeDescription
$entriesarray<string, RequestSummary>Committed manifest entries, newest first.
$removedlist<RequestSummary>Entries evicted from the manifest.