# PanelSnapshot

> Defines a typed debug-panel snapshot.

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

| interface | `PHPForge\Debug\Storage\PanelSnapshot` |
| --- | --- |
| Extends | [`JsonSerializable`](https://www.php.net/manual/en/class.jsonserializable.php) |
| Source | [`src/Storage/PanelSnapshot.php`](https://github.com/php-forge/debug-core/blob/main/src/Storage/PanelSnapshot.php#L12) |

Implemented by 13 types:

- [`PHPForge\Debug\Panel\Asset\AssetSnapshot`](/docs/extensions/debug-core/reference/panel/asset/assetsnapshot/index.md)
- [`PHPForge\Debug\Panel\Config\ConfigSnapshot`](/docs/extensions/debug-core/reference/panel/config/configsnapshot/index.md)
- [`PHPForge\Debug\Panel\Db\DbSnapshot`](/docs/extensions/debug-core/reference/panel/db/dbsnapshot/index.md)
- [`PHPForge\Debug\Panel\Dump\DumpSnapshot`](/docs/extensions/debug-core/reference/panel/dump/dumpsnapshot/index.md)
- [`PHPForge\Debug\Panel\Event\EventSnapshot`](/docs/extensions/debug-core/reference/panel/event/eventsnapshot/index.md)
- [`PHPForge\Debug\Panel\Log\LogSnapshot`](/docs/extensions/debug-core/reference/panel/log/logsnapshot/index.md)
- [`PHPForge\Debug\Panel\Mail\MailSnapshot`](/docs/extensions/debug-core/reference/panel/mail/mailsnapshot/index.md)
- [`PHPForge\Debug\Panel\Profile\ProfilingSnapshot`](/docs/extensions/debug-core/reference/panel/profile/profilingsnapshot/index.md)
- [`PHPForge\Debug\Panel\Queue\QueueSnapshot`](/docs/extensions/debug-core/reference/panel/queue/queuesnapshot/index.md)
- [`PHPForge\Debug\Panel\Request\RequestSnapshot`](/docs/extensions/debug-core/reference/panel/request/requestsnapshot/index.md)
- [`PHPForge\Debug\Panel\Router\RouterSnapshot`](/docs/extensions/debug-core/reference/panel/router/routersnapshot/index.md)
- [`PHPForge\Debug\Panel\Timeline\TimelineSnapshot`](/docs/extensions/debug-core/reference/panel/timeline/timelinesnapshot/index.md)
- [`PHPForge\Debug\Panel\User\UserSnapshot`](/docs/extensions/debug-core/reference/panel/user/usersnapshot/index.md)

Defines a typed debug-panel snapshot.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`jsonSerialize()`](#method-jsonSerialize) abstract | Returns the panel snapshot for JSON serialization. | `PanelSnapshot` |

## Method details

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

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

Returns the panel snapshot for JSON serialization.

**Returns**

`array<string, mixed>`: Serialized panel fields.