src/DebugBar/DataCollector/PDO/PDOCollector.php
public function addConnection(TraceablePDO $pdo, $name = null)
    {
        if ($name === null) {
            $name = spl_object_hash($pdo);
        }
        $this->connections[$name] = $pdo;
    }
public function addConnection(TraceablePDO $pdo, $name = null)
    {
        if ($name === null) {
            $name = spl_object_hash($pdo);
        }
        $this->connections[$name] = $pdo;
    }
public function addConnection ( TraceablePDO $ pdo , $ name = null ) { if ( $ name === null ) { $ name = spl_object_hash ( $ pdo ) ; } $ this -> connections [ $ name ] = $ pdo ; }
Adds a new PDO instance to be collector

@param TraceablePDO $pdo
@param string $name Optional connection name
Adds a new PDO instance to be collector