# PhpInfoSection

> Typed view-model for one section in the phpinfo Overview hero ('PHP version' / 'Build' / 'Configuration' / 'Capabilities' / 'Streams').

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

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

Typed view-model for one section in the phpinfo Overview hero ('PHP version' / 'Build' / 'Configuration' /
'Capabilities' / 'Streams').

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-eyebrow"></span>`$eyebrow` readonly constructor | `string` | Eyebrow shown in the section header ('PHP version', 'Build', ...). | `PhpInfoSection` |
| <span id="property-headline"></span>`$headline` readonly constructor | `string\|null` | Optional hero headline (the big 'PHP_VERSION' digits + 'php' mark surfaced only by the first section); `null` for the regular sections. Default: `null`. | `PhpInfoSection` |
| <span id="property-tiles"></span>`$tiles` readonly constructor | `list<`[`PhpInfoTile`](/docs/extensions/debug-core/reference/phpinfo/phpinfotile/index.md)`>` | Non-empty tiles surfaced under the eyebrow (already filtered by the normalizer). | `PhpInfoSection` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates a phpinfo overview section. | `PhpInfoSection` |

## Method details

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

```php
public function __construct(string $eyebrow, array $tiles, string|null $headline = null)
```

Creates a phpinfo overview section.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$eyebrow` | `string` |  |
| `$tiles` | `array` |  |
| `$headline` | `string\|null` |  |