public function offsetSet($slot, $connection)
    {
        if (!static::isValid($slot)) {
            throw new \OutOfBoundsException("Invalid slot $slot for `$connection`");
        }

        $this->slots[(int) $slot] = (string) $connection;
    }