Skip to content
PHP Ecosystem
Explore

SidebarView

API reference › Debug Core › View › Sidebar › SidebarView

final readonly classPHPForge\Debug\View\Sidebar\SidebarView
Sourcesrc/View/Sidebar/SidebarView.php

Top-level typed view-model for the debugger sidebar partial.

PropertyTypeDescriptionDefined by
$navGroups readonly constructorarray<string, list<SidebarNavItem>>Additional labeled navigation groups rendered after $navItems. Default: [].SidebarView
$navItems readonly constructorlist<SidebarNavItem>Panel navigation entries in display order (History first, then panels except config).SidebarView
$snapshot readonly constructorSidebarSnapshot|nullSnapshot card view-model; null when the manifest is empty so the card section is skipped entirely.SidebarView
MethodDescriptionDefined by
__construct()Creates the debugger sidebar view.SidebarView
public function __construct(PHPForge\Debug\View\Sidebar\SidebarSnapshot|null $snapshot, array $navItems, array $navGroups = [])

Creates the debugger sidebar view.

Parameters

ParameterTypeDescription
$snapshotSidebarSnapshot|null
$navItemsarray
$navGroupsarray