Manifest
API reference › Debug Core › Storage › Manifest
Represents the versioned request-summary index.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$entries readonly constructor | array<string, RequestSummary> | Request summaries indexed by tag. | Manifest |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a manifest indexed by request tag. | Manifest |
fromArray() static | Hydrates a versioned manifest from decoded JSON data. | Manifest |
jsonSerialize() | Returns the versioned manifest for JSON serialization. | Manifest |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(array<string, PHPForge\Debug\Storage\RequestSummary> $entries)Creates a manifest indexed by request tag.
Parameters
| Parameter | Type | Description |
|---|---|---|
$entries | array<string, RequestSummary> | Request summaries indexed by tag. |
fromArray()
Section titled “fromArray() ”public static function fromArray(mixed $data): selfHydrates a versioned manifest from decoded JSON data.
Parameters
| Parameter | Type | Description |
|---|---|---|
$data | mixed | Decoded manifest payload. |
Returns
self: Hydrated request-summary index.
jsonSerialize()
Section titled “jsonSerialize() ”public function jsonSerialize(): array<string, mixed>Returns the versioned manifest for JSON serialization.
Returns
array<string, mixed>: Versioned manifest payload.