PhpInfoSection
API reference › Debug Core › PhpInfo › PhpInfoSection
Typed view-model for one section in the phpinfo Overview hero (‘PHP version’ / ‘Build’ / ‘Configuration’ / ‘Capabilities’ / ‘Streams’).
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$eyebrow readonly constructor | string | Eyebrow shown in the section header (‘PHP version’, ‘Build’, …). | PhpInfoSection |
$headline readonly constructor | string| | Optional hero headline (the big ‘PHP_VERSION’ digits + ‘php’ mark surfaced only by the first section); null for the regular sections. Default: null. | PhpInfoSection |
$tiles readonly constructor | list<PhpInfoTile> | Non-empty tiles surfaced under the eyebrow (already filtered by the normalizer). | PhpInfoSection |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a phpinfo overview section. | PhpInfoSection |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”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| |