public function add(string $key, string $driver): void
    {
        if (!in_array(DriverInterface::class, class_implements($driver))) {
            throw new NotDriverProvidedException($key . ' is not a driver.');
        }

        $this->drivers[$key] = $driver;
    }