src/DebugBar/DebugBar.php
public function getCollector($name)
    {
        if (!isset($this->collectors[$name])) {
            throw new DebugBarException("'$name' is not a registered collector");
        }
        return $this->collectors[$name];
    }
public function getCollector($name)
    {
        if (!isset($this->collectors[$name])) {
            throw new DebugBarException("'$name' is not a registered collector");
        }
        return $this->collectors[$name];
    }
public function getCollector ( $ name ) { if ( ! isset ( $ this -> collectors [ $ name ] ) ) { throw new DebugBarException ( "'$name' is not a registered collector" ) ; } return $ this -> collectors [ $ name ] ; }
Returns a data collector

@param string $name
@return DataCollectorInterface
@throws DebugBarException
Returns a data collector