Skip to content
PHP Ecosystem
Explore

Manifest

API reference › Debug Core › Storage › Manifest

final readonly classPHPForge\Debug\Storage\Manifest
ImplementsJsonSerializable
Sourcesrc/Storage/Manifest.php

Represents the versioned request-summary index.

PropertyTypeDescriptionDefined by
$entries readonly constructorarray<string, RequestSummary>Request summaries indexed by tag.Manifest
MethodDescriptionDefined by
__construct()Creates a manifest indexed by request tag.Manifest
fromArray() staticHydrates a versioned manifest from decoded JSON data.Manifest
jsonSerialize()Returns the versioned manifest for JSON serialization.Manifest
public function __construct(array<string, PHPForge\Debug\Storage\RequestSummary> $entries)

Creates a manifest indexed by request tag.

Parameters

ParameterTypeDescription
$entriesarray<string, RequestSummary>Request summaries indexed by tag.
public static function fromArray(mixed $data): self

Hydrates a versioned manifest from decoded JSON data.

Parameters

ParameterTypeDescription
$datamixedDecoded manifest payload.

Returns

self: Hydrated request-summary index.

public function jsonSerialize(): array<string, mixed>

Returns the versioned manifest for JSON serialization.

Returns

array<string, mixed>: Versioned manifest payload.