public function connection(string $name = null): Client
    {
        $name = $name ?: $this->getDefaultConnection();

        if (!isset($this->connections[$name])) {
            $client = $this->makeConnection($name);

            $this->connections[$name] = $client;
        }

        return $this->connections[$name];
    }
public function connection(string $name = null): Client
    {
        $name = $name ?: $this->getDefaultConnection();

        if (!isset($this->connections[$name])) {
            $client = $this->makeConnection($name);

            $this->connections[$name] = $client;
        }

        return $this->connections[$name];
    }
public function connection ( string $ name = null ) : Client { $ name = $ name ? : $ this -> getDefaultConnection ( ) ; if ( ! isset ( $ this -> connections [ $ name ] ) ) { $ client = $ this -> makeConnection ( $ name ) ; $ this -> connections [ $ name ] = $ client ; } return $ this -> connections [ $ name ] ; }
Retrieve or build the named connection.

@param string|null $name

@return Client
Retrieve or build the named connection .