Skip to content
PHP Ecosystem
Explore

JobPayloadInspector

API reference › Debug Core › Panel › Queue › JobPayloadInspector

final classPHPForge\Debug\Panel\Queue\JobPayloadInspector
Sourcesrc/Panel/Queue/JobPayloadInspector.php

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

MethodDescriptionDefined by
extract() staticExtracts the public properties of an object as a recursively normalized array.JobPayloadInspector
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) but IS added when nested objects are expanded, so each sub-tree carries its own type label.

Parameters

ParameterTypeDescription
$jobobjectJob instance to inspect.

Returns

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