src/Repository.php
public function getAdapter()
    {
        if ($this->repositoryAdapter instanceof AdapterInterface) {
            return $this->repositoryAdapter;
        }

        foreach ($this->adapters as $adapterClass) {
            if (class_exists($adapterClass) === false || in_array('Accompli\Chrono\Adapter\AdapterInterface', class_implements($adapterClass)) === false) {
                continue;
            }

            $adapter = new $adapterClass($this->repositoryUrl, $this->repositoryDirectory, $this->processExecutor);
            if ($adapter->supportsRepository()) {
                return $adapter;
            }
        }
    }
public function getAdapter()
    {
        if ($this->repositoryAdapter instanceof AdapterInterface) {
            return $this->repositoryAdapter;
        }

        foreach ($this->adapters as $adapterClass) {
            if (class_exists($adapterClass) === false || in_array('Accompli\Chrono\Adapter\AdapterInterface', class_implements($adapterClass)) === false) {
                continue;
            }

            $adapter = new $adapterClass($this->repositoryUrl, $this->repositoryDirectory, $this->processExecutor);
            if ($adapter->supportsRepository()) {
                return $adapter;
            }
        }
    }
public function getAdapter ( ) { if ( $ this -> repositoryAdapter instanceof AdapterInterface ) { return $ this -> repositoryAdapter ; } foreach ( $ this -> adapters as $ adapterClass ) { if ( class_exists ( $ adapterClass ) === false || in_array ( 'Accompli\Chrono\Adapter\AdapterInterface' , class_implements ( $ adapterClass ) ) === false ) { continue ; } $ adapter = new $ adapterClass ( $ this -> repositoryUrl , $ this -> repositoryDirectory , $ this -> processExecutor ) ; if ( $ adapter -> supportsRepository ( ) ) { return $ adapter ; } } }
Returns the supported adapter for the repository.

@return AdapterInterface|null
Returns the supported adapter for the repository .