# PhpInfoToken

> Typed view-model for one token inside a PHPForge\Debug\PhpInfo\PhpInfoTile::KIND_PATH_LIST / PHPForge\Debug\PhpInfo\PhpInfoTile::KIND_TOKEN_LIST tile.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [PhpInfo](/docs/extensions/debug-core/reference/phpinfo/index.md) › PhpInfoToken

| final readonly class | `PHPForge\Debug\PhpInfo\PhpInfoToken` |
| --- | --- |
| Source | [`src/PhpInfo/PhpInfoToken.php`](https://github.com/php-forge/debug-core/blob/main/src/PhpInfo/PhpInfoToken.php#L11) |

Typed view-model for one token inside a [`PhpInfoTile::KIND_PATH_LIST`](/docs/extensions/debug-core/reference/phpinfo/phpinfotile/index.md#const-KIND_PATH_LIST) / [`PhpInfoTile::KIND_TOKEN_LIST`](/docs/extensions/debug-core/reference/phpinfo/phpinfotile/index.md#const-KIND_TOKEN_LIST)
tile.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-label"></span>`$label` readonly constructor | `string` | Display text shown inside the `<code>` token (for path lists this is the basename only). | `PhpInfoToken` |
| <span id="property-title"></span>`$title` readonly constructor | `string` | Full path / value surfaced in the token's [`PhpInfoToken::$title`](/docs/extensions/debug-core/reference/phpinfo/phpinfotoken/index.md#property-title) tooltip; empty when the label IS the full value (short-token lists). Default: `''`. | `PhpInfoToken` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates a token for a phpinfo overview tile. | `PhpInfoToken` |

## Method details

### __construct() <span id="method-__construct"></span>

```php
public function __construct(string $label, string $title = '')
```

Creates a token for a phpinfo overview tile.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$label` | `string` |  |
| `$title` | `string` |  |