SidebarView
API reference › Debug Core › View › Sidebar › SidebarView
Top-level typed view-model for the debugger sidebar partial.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$navGroups readonly constructor | array<string,SidebarNavItem>> | Additional labeled navigation groups rendered after $navItems. Default: []. | SidebarView |
$navItems readonly constructor | list<SidebarNavItem> | Panel navigation entries in display order (History first, then panels except config). | SidebarView |
$snapshot readonly constructor | SidebarSnapshot| | Snapshot card view-model; null when the manifest is empty so the card section is skipped entirely. | SidebarView |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates the debugger sidebar view. | SidebarView |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(PHPForge\Debug\View\Sidebar\SidebarSnapshot|null $snapshot, array $navItems, array $navGroups = [])Creates the debugger sidebar view.
Parameters
| Parameter | Type | Description |
|---|---|---|
$snapshot | SidebarSnapshot| | |
$navItems | array | |
$navGroups | array |