/** * @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); }