Skip to content
PHP Ecosystem
Explore

PhpInfoTocEntry

API reference › Debug Core › PhpInfo › PhpInfoTocEntry

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

Typed view-model for one entry in the phpinfo TOC sidebar.

PropertyTypeDescriptionDefined by
$slug readonly constructorstringAnchor slug (‘phpinfo-overview’, ‘phpinfo-apcu’, …) consumed by the TOC anchor and the section id.PhpInfoTocEntry
$title readonly constructorstringDisplay title (‘Overview’, ‘apcu’, ‘Core’, …).PhpInfoTocEntry
MethodDescriptionDefined by
__construct()Creates a phpinfo sidebar table-of-contents entry.PhpInfoTocEntry
public function __construct(string $title, string $slug)

Creates a phpinfo sidebar table-of-contents entry.

Parameters

ParameterTypeDescription
$titlestring
$slugstring