# Manifest

> Represents the versioned request-summary index.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Storage](/docs/extensions/debug-core/reference/storage/index.md) › Manifest

| final readonly class | `PHPForge\Debug\Storage\Manifest` |
| --- | --- |
| Implements | [`JsonSerializable`](https://www.php.net/manual/en/class.jsonserializable.php) |
| Source | [`src/Storage/Manifest.php`](https://github.com/php-forge/debug-core/blob/main/src/Storage/Manifest.php#L14) |

Represents the versioned request-summary index.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-entries"></span>`$entries` readonly constructor | `array<string,` [`RequestSummary`](/docs/extensions/debug-core/reference/storage/requestsummary/index.md)`>` | Request summaries indexed by tag. | `Manifest` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates a manifest indexed by request tag. | `Manifest` |
| [`fromArray()`](#method-fromArray) static | Hydrates a versioned manifest from decoded JSON data. | `Manifest` |
| [`jsonSerialize()`](#method-jsonSerialize) | Returns the versioned manifest for JSON serialization. | `Manifest` |

## Method details

### __construct() <span id="method-__construct"></span>

```php
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`](/docs/extensions/debug-core/reference/storage/requestsummary/index.md)`>` | Request summaries indexed by tag. |

### fromArray() <span id="method-fromArray"></span>

```php
public static function fromArray(mixed $data): self
```

Hydrates a versioned manifest from decoded JSON data.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$data` | `mixed` | Decoded manifest payload. |

**Returns**

`self`: Hydrated request-summary index.

### jsonSerialize() <span id="method-jsonSerialize"></span>

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

Returns the versioned manifest for JSON serialization.

**Returns**

`array<string, mixed>`: Versioned manifest payload.