1 | <?php declare(strict_types=1); |
||
25 | class BaseEngineFinder extends AbstractFinder implements EngineFinder |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * Find a result based on a specific criteria. |
||
30 | * |
||
31 | * @since 0.1.0 |
||
32 | * |
||
33 | * @param array $criteria Criteria to search for. |
||
34 | * |
||
35 | * @return Engine Result of the search. |
||
36 | 30 | * @throws FailedToInstantiateFindable If the Findable could not be instantiated. |
|
37 | */ |
||
38 | 30 | public function find(array $criteria): Engine |
|
52 | |||
53 | /** |
||
54 | * Get the config key for the Findables definitions. |
||
55 | * |
||
56 | * @since 0.1.0 |
||
57 | * |
||
58 | 16 | * @return string Config key use to define the Findables. |
|
59 | */ |
||
60 | 16 | protected function getFindablesConfigKey(): string |
|
64 | |||
65 | /** |
||
66 | * Get the NullObject. |
||
67 | * |
||
68 | * @since 0.1.1 |
||
69 | * |
||
70 | * @return NullEngine NullObject for the current Finder. |
||
71 | * @throws FailedToInstantiateFindable If the Findable could not be instantiated. |
||
72 | */ |
||
73 | public function getNullObject(): NullEngine |
||
77 | } |
||
78 |