private function getAdapter(TableInterface $table, $format)
    {
        $adapters = $table->getConfig()->getExportAdapters();

        foreach ($adapters as $adapter) {
            if ($adapter->supports($format)) {
                return $adapter;
            }
        }

        return null;
    }
private function getAdapter(TableInterface $table, $format)
    {
        $adapters = $table->getConfig()->getExportAdapters();

        foreach ($adapters as $adapter) {
            if ($adapter->supports($format)) {
                return $adapter;
            }
        }

        return null;
    }
private function getAdapter ( TableInterface $ table , $ format ) { $ adapters = $ table -> getConfig ( ) -> getExportAdapters ( ) ; foreach ( $ adapters as $ adapter ) { if ( $ adapter -> supports ( $ format ) ) { return $ adapter ; } } return null ; }
Returns the adapter supporting the given format.

@param TableInterface $table
@param string         $format

@return \Ekyna\Component\Table\Export\AdapterInterface|null
Returns the adapter supporting the given format .