src/Debugger/Bar.php
public function addPanel(Bar\PanelInterface $panel, string $id = null): self
    {
        if ($id === null) {
            $c = 0;
            do {
                $id = \get_class($panel) . ($c++ ? "-$c" : '');
            } while (isset($this->panels[$id]));
        }
        $this->panels[$id] = $panel;

        return $this;
    }
public function addPanel(Bar\PanelInterface $panel, string $id = null): self
    {
        if ($id === null) {
            $c = 0;
            do {
                $id = \get_class($panel) . ($c++ ? "-$c" : '');
            } while (isset($this->panels[$id]));
        }
        $this->panels[$id] = $panel;

        return $this;
    }
public function addPanel ( Bar \ PanelInterface $ panel , string $ id = null ) : self { if ( $ id === null ) { $ c = 0 ; do { $ id = \ get_class ( $ panel ) . ( $ c ++ ? "-$c" : '' ) ; } while ( isset ( $ this -> panels [ $ id ] ) ) ; } $ this -> panels [ $ id ] = $ panel ; return $ this ; }
Add custom panel.

@param  Bar\PanelInterface $panel
@param  string             $id

@return static
Add custom panel .