PhpInfoTile
API reference › Debug Core › PhpInfo › PhpInfoTile
Typed view-model for one tile in a phpinfo Overview section.
The $kind discriminator drives the renderer’s branch: enabled/disabled pill, comma-separated path or token list,
single shortened path, or plain code text.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$displayValue readonly constructor | string | Display value already prepared for the rendering branch indicated by $kind. | PhpInfoTile |
$kind readonly constructor | string | Rendering kind. See the KIND_* constants. | PhpInfoTile |
$label readonly constructor | string | Tile label rendered in the <dt> cell (‘SAPI’, ‘Memory limit’, …). | PhpInfoTile |
$rawValue readonly constructor | string | Full original value (used as the title tooltip when the display value was shortened). | PhpInfoTile |
$tokens readonly constructor | list<PhpInfoToken> | Path tokens for KIND_PATH_LIST (already with basename() applied for display) or short tokens for KIND_TOKEN_LIST. Empty list for the other kinds. Default: []. | PhpInfoTile |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a typed tile for a phpinfo overview section. | PhpInfoTile |
Constants
Section titled “Constants”| Constant | Value | Description | Defined by |
|---|---|---|---|
KIND_PATH | 'path' | Renders a single shortened path as <code>, with the full value as its hover title. | PhpInfoTile |
KIND_PATH_LIST | 'path-list' | Renders every entry of $tokens as a <code> chip, each carrying its full path as a hover title. | PhpInfoTile |
KIND_PILL_MUTED | 'pill-muted' | Renders a pill in its muted variant, used for an off or unavailable status. | PhpInfoTile |
KIND_PILL_SUCCESS | 'pill-success' | Renders a pill in its success variant, used for an on or available status. | PhpInfoTile |
KIND_TEXT | 'text' | Renders the display value as plain <code> text, without a hover title. | PhpInfoTile |
KIND_TOKEN_LIST | 'token-list' | Renders every entry of $tokens as a <code> chip; unlike KIND_PATH_LIST, the tokens are not paths. | PhpInfoTile |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $label, string $displayValue, string $rawValue, string $kind, array $tokens = [])Creates a typed tile for a phpinfo overview section.
Parameters
| Parameter | Type | Description |
|---|---|---|
$label | string | |
$displayValue | string | |
$rawValue | string | |
$kind | string | |
$tokens | array |