Skip to content
PHP Ecosystem
Explore

PhpInfoToken

API reference › Debug Core › PhpInfo › PhpInfoToken

final readonly classPHPForge\Debug\PhpInfo\PhpInfoToken
Sourcesrc/PhpInfo/PhpInfoToken.php

Typed view-model for one token inside a PhpInfoTile::KIND_PATH_LIST / PhpInfoTile::KIND_TOKEN_LIST tile.

PropertyTypeDescriptionDefined by
$label readonly constructorstringDisplay text shown inside the <code> token (for path lists this is the basename only).PhpInfoToken
$title readonly constructorstringFull path / value surfaced in the token’s PhpInfoToken::$title tooltip; empty when the label IS the full value (short-token lists). Default: ''.PhpInfoToken
MethodDescriptionDefined by
__construct()Creates a token for a phpinfo overview tile.PhpInfoToken
public function __construct(string $label, string $title = '')

Creates a token for a phpinfo overview tile.

Parameters

ParameterTypeDescription
$labelstring
$titlestring