ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Factory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\MetaData\Search\Filters\FactoryInterface as SearchFilterFactory;
27 
28 class Factory implements FactoryInterface
29 {
30  protected SearchFilterFactory $search_filter_factory;
34 
35  public function __construct(
36  SearchFilterFactory $search_filter_factory,
37  SearchClauseFactory $search_clause_factory,
38  PathFactory $path_factory,
39  CopyrightIdentifierHandler $copyright_identifier_handler,
40  ) {
41  $this->search_filter_factory = $search_filter_factory;
42  $this->search_clause_factory = $search_clause_factory;
43  $this->path_factory = $path_factory;
44  $this->copyright_identifier_handler = $copyright_identifier_handler;
45  }
46 
47  public function get(): SearcherInterface
48  {
49  return new Searcher(
50  $this->search_filter_factory,
51  $this->search_clause_factory,
52  $this->path_factory,
53  $this->copyright_identifier_handler
54  );
55  }
56 }
CopyrightIdentifierHandler $copyright_identifier_handler
Definition: Factory.php:33
SearchFilterFactory $search_filter_factory
Definition: Factory.php:30
SearchClauseFactory $search_clause_factory
Definition: Factory.php:31
__construct(SearchFilterFactory $search_filter_factory, SearchClauseFactory $search_clause_factory, PathFactory $path_factory, CopyrightIdentifierHandler $copyright_identifier_handler,)
Definition: Factory.php:35