ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\MetaData\Search\Filters\FactoryInterface as SearchFilterFactory;
24use ILIAS\MetaData\Search\Clauses\FactoryInterface as SearchClauseFactory;
26use ILIAS\MetaData\Copyright\Identifiers\HandlerInterface as CopyrightIdentifierHandler;
27
28class Factory implements FactoryInterface
29{
30 protected SearchFilterFactory $search_filter_factory;
31 protected SearchClauseFactory $search_clause_factory;
32 protected PathFactory $path_factory;
33 protected CopyrightIdentifierHandler $copyright_identifier_handler;
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
__construct(SearchFilterFactory $search_filter_factory, SearchClauseFactory $search_clause_factory, PathFactory $path_factory, CopyrightIdentifierHandler $copyright_identifier_handler,)
Definition: Factory.php:35
SearchClauseFactory $search_clause_factory
Definition: Factory.php:31