Example #1
0
 /**
  * Returns an Indexer object
  *
  * @param object $collection
  * @return object Indexer
  */
 protected function getIndexer(Collection $collection)
 {
     $parsable = $collection->getByCallback(function ($resource) {
         return $this->isParsable($resource);
     });
     return new Indexer($parsable, $this->analyzer, $this->outputter);
 }