code: public function instance()
      {
          if ($this->connection !== null) {
              $conn = $this->connection;
  
              if (!$conn->isConnected()) {
                  $conn->reconnect();
              }
  
              return $conn;
          }
  
          return $this->connection = $this->create();
      }
docs: Get a connected managed @see \AMQPConnection instance.
  
  @return \AMQPConnection