Skip to content
PHP Ecosystem
Explore

UserAttribute

API reference › Debug Core › Panel › User › UserAttribute

final readonly classPHPForge\Debug\Panel\User\UserAttribute
Sourcesrc/Panel/User/UserAttribute.php

Typed view-model for one user-identity attribute row.

PropertyTypeDescriptionDefined by
$displayValue readonly constructorstringDisplay string with surrounding Dump quotes already stripped, or '' when the raw value was null or empty.UserAttribute
$key readonly constructorstringRaw attribute key (for example, username, created_at, auth_key).UserAttribute
$kind readonly constructorstringRendering kind; one of the KIND_* constants.UserAttribute
$label readonly constructorstringHuman-readable label resolved through the Model::attributeLabels() map, or computed as a title-cased version of $key.UserAttribute
$timestampAbs readonly constructorstringAbsolute timestamp string (for example, Apr 13, 2026 · 14:19); only populated when $kind === KIND_TIMESTAMP. Default: ''.UserAttribute
$timestampRel readonly constructorstringRelative timestamp string (for example, 28 d ago); only populated when $kind === KIND_TIMESTAMP. Default: ''.UserAttribute
MethodDescriptionDefined by
__construct()Creates a user-identity attribute row.UserAttribute
ConstantValueDescriptionDefined by
KIND_EMPTY'empty'Rendering kind: empty — placeholder.UserAttribute
KIND_PLAIN'plain'Rendering kind: plain text value.UserAttribute
KIND_SECURITY'security'Rendering kind: masked value behind a reveal button.UserAttribute
KIND_TIMESTAMP'timestamp'Rendering kind: timestamp pair (relative + absolute).UserAttribute
public function __construct(string $key, string $label, string $displayValue, string $kind, string $timestampRel = '', string $timestampAbs = '')

Creates a user-identity attribute row.

Parameters

ParameterTypeDescription
$keystring
$labelstring
$displayValuestring
$kindstring
$timestampRelstring
$timestampAbsstring