code: public function remove(NodeConnectionInterface $connection)
      {
          if ($connection === $this->master) {
              $this->master = null;
          } elseif (false !== $id = array_search($connection, $this->slaves, true)) {
              unset($this->slaves[$id]);
          } else {
              return false;
          }
  
          unset($this->pool[(string) $connection]);
  
          if ($this->aliases && $alias = $connection->getParameters()->alias) {
              unset($this->aliases[$alias]);
          }
  
          $this->reset();
  
          return true;
      }
docs: {@inheritdoc}