public function resetConnection(): void
    {
        if (! \is_null($this->defaultConnection)) {
            $this->resolver->connection($this->connection)->disconnect();

            $this->setConnection($this->defaultConnection);
        }
    }
public function resetConnection(): void
    {
        if (! \is_null($this->defaultConnection)) {
            $this->resolver->connection($this->connection)->disconnect();

            $this->setConnection($this->defaultConnection);
        }
    }
public function resetConnection ( ) : void { if ( ! \ is_null ( $ this -> defaultConnection ) ) { $ this -> resolver -> connection ( $ this -> connection ) -> disconnect ( ) ; $ this -> setConnection ( $ this -> defaultConnection ) ; } }
Reset the default connection name.

@return void
Reset the default connection name .