# JobPayloadInspector

> Extracts the public-property tree of a job into a normalized, serializable structure.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Panel](/docs/extensions/debug-core/reference/panel/index.md) › [Queue](/docs/extensions/debug-core/reference/panel/queue/index.md) › JobPayloadInspector

| final class | `PHPForge\Debug\Panel\Queue\JobPayloadInspector` |
| --- | --- |
| Source | [`src/Panel/Queue/JobPayloadInspector.php`](https://github.com/php-forge/debug-core/blob/main/src/Panel/Queue/JobPayloadInspector.php#L20) |

Extracts the public-property tree of a job into a normalized, serializable structure.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`extract()`](#method-extract) static | Extracts the public properties of an object as a recursively normalized array. | `JobPayloadInspector` |

## Method details

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

```php
public static function extract(object $job): array<string, mixed>
```

Extracts the public properties of an object as a recursively normalized array.

The synthetic `__class` key is NOT included on the top-level extraction (the renderer already knows the job class
via [`JobRecord::$jobClass`](/docs/extensions/debug-core/reference/panel/queue/jobrecord/index.md#property-jobClass)) but IS added when nested objects are expanded, so each sub-tree carries its own
type label.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$job` | `object` | Job instance to inspect. |

**Returns**

`array<string, mixed>`: Top-level property map keyed by property name.