PhpInfoTocEntry
API reference › Debug Core › PhpInfo › PhpInfoTocEntry
Typed view-model for one entry in the phpinfo TOC sidebar.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$slug readonly constructor | string | Anchor slug (‘phpinfo-overview’, ‘phpinfo-apcu’, …) consumed by the TOC anchor and the section id. | PhpInfoTocEntry |
$title readonly constructor | string | Display title (‘Overview’, ‘apcu’, ‘Core’, …). | PhpInfoTocEntry |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a phpinfo sidebar table-of-contents entry. | PhpInfoTocEntry |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $title, string $slug)Creates a phpinfo sidebar table-of-contents entry.
Parameters
| Parameter | Type | Description |
|---|---|---|
$title | string | |
$slug | string |