# PanelCatalog

> Carries the panels the debugger registered and the catalog describing their display order.

[API reference](/docs/api/index.md) › [Debug](/docs/extensions/debug/reference/index.md) › [service](/docs/extensions/debug/reference/service/index.md) › PanelCatalog

| final readonly class | `yii\debug\service\PanelCatalog` |
| --- | --- |
| Source | [`src/service/PanelCatalog.php`](https://github.com/yii2-extensions/debug/blob/main/src/service/PanelCatalog.php#L13) |

Carries the panels the debugger registered and the catalog describing their display order.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-panels"></span>`$panels` readonly constructor | `array<string,` [`yii\debug\Panel`](/docs/extensions/debug/reference/panel/index.md)`>` | Enabled panels indexed by ID in display order. | `PanelCatalog` |
| <span id="property-registry"></span>`$registry` readonly constructor | [`PanelRegistry`](https://github.com/php-forge/debug-core/blob/b70459f033a1d7a1c5edf7951029aad2061986dd/src/Registration/PanelRegistry.php) | Effective catalog carrying the display order and the IDs disabled by configuration. | `PanelCatalog` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Pairs the registered panels with their effective registry. | `PanelCatalog` |

## Method details

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

```php
public function __construct(array<string, yii\debug\Panel> $panels, PHPForge\Debug\Registration\PanelRegistry $registry)
```

Pairs the registered panels with their effective registry.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$panels` | `array<string,` [`yii\debug\Panel`](/docs/extensions/debug/reference/panel/index.md)`>` | Enabled panels indexed by ID in display order. |
| `$registry` | [`PanelRegistry`](https://github.com/php-forge/debug-core/blob/b70459f033a1d7a1c5edf7951029aad2061986dd/src/Registration/PanelRegistry.php) | Effective catalog carrying the display order and the IDs disabled by configuration. |