public function getAdapter()
    {
        if (!$this->adapter) {
            throw new Exception\RuntimeException(sprintf(
                '"%s" unable to load adapter; adapter not found',
                __METHOD__
            ));
        }
        if (method_exists($this->adapter, 'setOptions')) {
            $this->adapter->setOptions($this->getAdapterOptions());
        }

        return $this->adapter;
    }
public function getAdapter()
    {
        if (!$this->adapter) {
            throw new Exception\RuntimeException(sprintf(
                '"%s" unable to load adapter; adapter not found',
                __METHOD__
            ));
        }
        if (method_exists($this->adapter, 'setOptions')) {
            $this->adapter->setOptions($this->getAdapterOptions());
        }

        return $this->adapter;
    }
public function getAdapter ( ) { if ( ! $ this -> adapter ) { throw new Exception \ RuntimeException ( sprintf ( '"%s" unable to load adapter; adapter not found' , __METHOD__ ) ) ; } if ( method_exists ( $ this -> adapter , 'setOptions' ) ) { $ this -> adapter -> setOptions ( $ this -> getAdapterOptions ( ) ) ; } return $ this -> adapter ; }
Returns the current adapter

@return ConversionAlgorithmInterface
@throws Exception\RuntimeException
Returns the current adapter