src/Composer/Search/CompositeSearch.php
public function addSearcher(SearchInterface $searcher)
    {
        if ($searcher instanceof self && count($searcher->getSearchers())) {
            foreach ($searcher->getSearchers() as $compositeSearcher) {
                $this->addSearcher($compositeSearcher);
            }

            return $this;
        }

        $this->searchers[] = $searcher;

        return $this;
    }
public function addSearcher(SearchInterface $searcher)
    {
        if ($searcher instanceof self && count($searcher->getSearchers())) {
            foreach ($searcher->getSearchers() as $compositeSearcher) {
                $this->addSearcher($compositeSearcher);
            }

            return $this;
        }

        $this->searchers[] = $searcher;

        return $this;
    }
public function addSearcher ( SearchInterface $ searcher ) { if ( $ searcher instanceof self && count ( $ searcher -> getSearchers ( ) ) ) { foreach ( $ searcher -> getSearchers ( ) as $ compositeSearcher ) { $ this -> addSearcher ( $ compositeSearcher ) ; } return $ this ; } $ this -> searchers [ ] = $ searcher ; return $ this ; }
Add a search providers,

@param SearchInterface $searcher The provider to add.

@return $this
Add a search providers