src/Database/Migration/Adapter/AdapterFactory.php
public function registerAdapter($name, $class)
    {
        if (!is_subclass_of($class, AdapterInterface::class)) {
            throw new \RuntimeException(sprintf(
                'Adapter class "%s" must implement ' . AdapterInterface::class,
                $class
            ));
        }
        $this->adapters[$name] = $class;

        return $this;
    }
public function registerAdapter($name, $class)
    {
        if (!is_subclass_of($class, AdapterInterface::class)) {
            throw new \RuntimeException(sprintf(
                'Adapter class "%s" must implement ' . AdapterInterface::class,
                $class
            ));
        }
        $this->adapters[$name] = $class;

        return $this;
    }
public function registerAdapter ( $ name , $ class ) { if ( ! is_subclass_of ( $ class , AdapterInterface :: class ) ) { throw new \ RuntimeException ( sprintf ( 'Adapter class "%s" must implement ' . AdapterInterface :: class , $ class ) ) ; } $ this -> adapters [ $ name ] = $ class ; return $ this ; }
Add or replace an adapter with a fully qualified class name.

@throws \RuntimeException

@param  string $name
@param  string $class

@return $this
Add or replace an adapter with a fully qualified class name .