UserAttribute
API reference › Debug Core › Panel › User › UserAttribute
Typed view-model for one user-identity attribute row.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$displayValue readonly constructor | string | Display string with surrounding Dump quotes already stripped, or '' when the raw value was null or empty. | UserAttribute |
$key readonly constructor | string | Raw attribute key (for example, username, created_at, auth_key). | UserAttribute |
$kind readonly constructor | string | Rendering kind; one of the KIND_* constants. | UserAttribute |
$label readonly constructor | string | Human-readable label resolved through the Model::attributeLabels() map, or computed as a title-cased version of $key. | UserAttribute |
$timestampAbs readonly constructor | string | Absolute timestamp string (for example, Apr 13,); only populated when $kind === KIND_TIMESTAMP. Default: ''. | UserAttribute |
$timestampRel readonly constructor | string | Relative timestamp string (for example, 28 d ago); only populated when $kind === KIND_TIMESTAMP. Default: ''. | UserAttribute |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a user-identity attribute row. | UserAttribute |
Constants
Section titled “Constants”| Constant | Value | Description | Defined 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 |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $key, string $label, string $displayValue, string $kind, string $timestampRel = '', string $timestampAbs = '')Creates a user-identity attribute row.
Parameters
| Parameter | Type | Description |
|---|---|---|
$key | string | |
$label | string | |
$displayValue | string | |
$kind | string | |
$timestampRel | string | |
$timestampAbs | string |