/** * @param ehough_finder_adapter_AdapterInterface $adapter * @param string|null $message * @param Exception|null $previous */ public function __construct(ehough_finder_adapter_AdapterInterface $adapter, $message = null, Exception $previous = null) { $this->adapter = $adapter; parent::__construct($message ? $message : 'Search failed with "' . $adapter->getName() . '" adapter.', $previous); }
/** * @param ehough_finder_adapter_AdapterInterface $adapter * * @return ehough_finder_adapter_AdapterInterface */ private function buildAdapter(ehough_finder_adapter_AdapterInterface $adapter) { return $adapter->setFollowLinks($this->followLinks)->setDepths($this->depths)->setMode($this->mode)->setExclude($this->exclude)->setNames($this->names)->setNotNames($this->notNames)->setContains($this->contains)->setNotContains($this->notContains)->setSizes($this->sizes)->setDates($this->dates)->setFilters($this->filters)->setSort($this->sort)->setPath($this->paths)->setNotPath($this->notPaths)->ignoreUnreadableDirs($this->ignoreUnreadableDirs); }
public function _callbackTestAdaptersOrdering(ehough_finder_adapter_AdapterInterface $adapter) { return $adapter->getName(); }