UserSnapshot
API reference › Debug Core › Panel › User › UserSnapshot
Canonical User panel identity and RBAC snapshot.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() final | Creates a snapshot from a tagged dynamic payload. | PHPForge\ |
capture() static | Captures arbitrary array values in a JSON-safe snapshot. | PHPForge\ |
data() | Returns the captured identity and RBAC payload. | UserSnapshot |
fromArray() static | Hydrates a dynamic payload from decoded JSON data. | PHPForge\ |
jsonSerialize() | Returns the tagged payload for JSON serialization. | PHPForge\ |
payloadKey() protected static | Returns the key under which the user payload is stored. | UserSnapshot |
Method details
Section titled “Method details”data()
Section titled “data() ”public function data(): array<array-key, mixed>Returns the captured identity and RBAC payload.
Returns
array<array-key, mixed>: Captured identity attributes, roles, and permissions.
payloadKey()
Section titled “payloadKey() ”protected static function payloadKey(): stringReturns the key under which the user payload is stored.
Returns
string: Payload key.