KGzocha\Searcher\Context\SearchingContextInterface::getResults PHP Метод

getResults() публичный Метод

This method have to be implemented in specific SearchingContext's that will extend this class. For memory efficient please do not use simple array to return bigger results.
public getResults ( ) : mixed
Результат mixed
    public function getResults();

Usage Example

Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function search(CriteriaCollectionInterface $criteriaCollection)
 {
     $builders = $this->builders->getCriteriaBuildersForContext($this->searchingContext);
     foreach ($criteriaCollection->getApplicableCriteria() as $criteria) {
         $this->searchForModel($criteria, $this->searchingContext, $builders);
     }
     return $this->searchingContext->getResults();
 }
SearchingContextInterface