public function addConnection(
        $name,
        $dsn = null,
        array $mapping = null,
        $defaultDatabase = null,
        array $connectOptions = null
    ) {
        $this->configuration[$name] = array(
            'dsn'               => $dsn,
            'connectOptions'    => $connectOptions,
            'defaultDatabase'   => $defaultDatabase,
            'mapping'           => $mapping,
        );
        
        return $this;
    }
public function addConnection(
        $name,
        $dsn = null,
        array $mapping = null,
        $defaultDatabase = null,
        array $connectOptions = null
    ) {
        $this->configuration[$name] = array(
            'dsn'               => $dsn,
            'connectOptions'    => $connectOptions,
            'defaultDatabase'   => $defaultDatabase,
            'mapping'           => $mapping,
        );
        
        return $this;
    }
public function addConnection ( $ name , $ dsn = null , array $ mapping = null , $ defaultDatabase = null , array $ connectOptions = null ) { $ this -> configuration [ $ name ] = array ( 'dsn' => $ dsn , 'connectOptions' => $ connectOptions , 'defaultDatabase' => $ defaultDatabase , 'mapping' => $ mapping , ) ; return $ this ; }
Add connection to pool

@param string $name connection identifier
@param string $dsn data source name
@param array $mapping mapping configuration
@param string $defaultDatabase name of database used as default
@param array $connectOptions connect options

@return ClientPool
Add connection to pool