| 1 | <?php |
||
| 7 | use xbanners\src\UrlFinder\Finders\PageCategories; |
||
| 8 | use xbanners\src\UrlFinder\Finders\Pages; |
||
| 9 | use xbanners\src\UrlFinder\Finders\ProductCategories; |
||
| 10 | use xbanners\src\UrlFinder\Finders\Products; |
||
| 11 | |||
| 12 | class DelegationFinder extends BaseFinder |
||
| 13 | { |
||
|
|
|||
| 14 | |||
| 15 | /** |
||
| 16 | * @var BaseFinder[] |
||
| 17 | */ |
||
| 18 | protected $finders = []; |
||
| 19 | |||
| 20 | public function __construct() { |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $word |
||
| 41 | * @return ResultsCollection |
||
| 42 | */ |
||
| 43 | public function getResultsFor($word, $language, $limit = 10) { |
||
| 44 | $results = new ResultsCollection(); |
||
| 45 | foreach ($this->finders as $finder) { |
||
| 59 | } |