original_string: 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;
              }
          }
      }
code: 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;
              }
          }
      }
code_tokens: 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 ; } } }
docstring: Returns the supported adapter for the repository.
  
  @return AdapterInterface|null
docstring_tokens: Returns the supported adapter for the repository .