1 | <?php |
||
23 | abstract class AbstractSearchService implements SearchService { |
||
24 | |||
25 | /** |
||
26 | * |
||
27 | * @var ObjectManager |
||
28 | */ |
||
29 | protected $objectManager; |
||
30 | |||
31 | /** |
||
32 | * @var ContainerInterface |
||
33 | */ |
||
34 | protected $facetContainer; |
||
35 | |||
36 | /** |
||
37 | * |
||
38 | * {@inheritdoc} |
||
39 | * |
||
40 | * @see \StingerSoft\EntitySearchBundle\Services\SearchService::getObjectManager() |
||
41 | */ |
||
42 | public function getObjectManager(): ObjectManager { |
||
45 | |||
46 | /** |
||
47 | * |
||
48 | * {@inheritdoc} |
||
49 | * |
||
50 | * @see \StingerSoft\EntitySearchBundle\Services\SearchService::setObjectManager() |
||
51 | * |
||
52 | * @required |
||
53 | */ |
||
54 | public function setObjectManager(ObjectManager $om): void { |
||
59 | |||
60 | /** |
||
61 | * |
||
62 | * {@inheritdoc} |
||
63 | * |
||
64 | * @see \StingerSoft\EntitySearchBundle\Services\SearchService::setFacetContainer() |
||
65 | */ |
||
66 | public function setFacetContainer(ContainerInterface $facetContainer): void { |
||
69 | |||
70 | /** |
||
71 | * |
||
72 | * {@inheritdoc} |
||
73 | * |
||
74 | * @see \StingerSoft\EntitySearchBundle\Services\SearchService::getFacet() |
||
75 | */ |
||
76 | public function getFacet(string $facetId): FacetServiceInterface { |
||
79 | |||
80 | /** |
||
81 | * |
||
82 | * {@inheritdoc} |
||
83 | * |
||
84 | * @see \StingerSoft\EntitySearchBundle\Services\SearchService::createEmptyDocumentFromEntity() |
||
85 | */ |
||
86 | public function createEmptyDocumentFromEntity(object $entity): Document { |
||
96 | |||
97 | /** |
||
98 | * |
||
99 | * {@inheritdoc} |
||
100 | * |
||
101 | * @see \StingerSoft\EntitySearchBundle\Services\SearchService::getOnlineHelp() |
||
102 | */ |
||
103 | public function getOnlineHelp(string $locale, string $defaultLocale = 'en'): ?string { |
||
106 | |||
107 | protected function getClass($entity): string { |
||
110 | |||
111 | /** |
||
112 | * Creates a new document instance |
||
113 | * |
||
114 | * @return Document |
||
115 | */ |
||
116 | protected function newDocumentInstance(): Document { |
||
119 | } |