public function connect()
    {
        if ($this->connection) {
            $this->countConnections++;
            return false;
        }
        $connection = $this->implementation->connect($this->params, $errorInfo, $errorCode);
        if (!$connection) {
            throw new Connect($errorInfo, $errorCode);
        }
        $this->connection = $connection;
        $this->countConnections = 1;
        return true;
    }
public function connect()
    {
        if ($this->connection) {
            $this->countConnections++;
            return false;
        }
        $connection = $this->implementation->connect($this->params, $errorInfo, $errorCode);
        if (!$connection) {
            throw new Connect($errorInfo, $errorCode);
        }
        $this->connection = $connection;
        $this->countConnections = 1;
        return true;
    }
public function connect ( ) { if ( $ this -> connection ) { $ this -> countConnections ++ ; return false ; } $ connection = $ this -> implementation -> connect ( $ this -> params , $ errorInfo , $ errorCode ) ; if ( ! $ connection ) { throw new Connect ( $ errorInfo , $ errorCode ) ; } $ this -> connection = $ connection ; $ this -> countConnections = 1 ; return true ; }
The connection requirement

@return bool
TRUE if connection has been established in this time
@throws \go\DB\Exceptions\Connect
a connect error
The connection requirement