src/Phinx/Db/Adapter/AdapterFactory.php
protected function getClass($name)
    {
        if (empty($this->adapters[$name])) {
            throw new \RuntimeException(sprintf(
                'Adapter "%s" has not been registered',
                $name
            ));
        }

        return $this->adapters[$name];
    }
protected function getClass($name)
    {
        if (empty($this->adapters[$name])) {
            throw new \RuntimeException(sprintf(
                'Adapter "%s" has not been registered',
                $name
            ));
        }

        return $this->adapters[$name];
    }
protected function getClass ( $ name ) { if ( empty ( $ this -> adapters [ $ name ] ) ) { throw new \ RuntimeException ( sprintf ( 'Adapter "%s" has not been registered' , $ name ) ) ; } return $ this -> adapters [ $ name ] ; }
Get an adapter class by name.

@throws \RuntimeException
@param  string $name
@return string
Get an adapter class by name .