1 | <?php declare(strict_types=1); |
||
27 | class BaseViewFinder extends AbstractFinder implements ViewFinder |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * Find a result based on a specific criteria. |
||
32 | * |
||
33 | * @since 0.1.0 |
||
34 | * |
||
35 | * @param array $criteria Criteria to search for. |
||
36 | * @param Engine|null $engine Optional. Engine to use with the view. |
||
37 | * |
||
38 | * @return View View that was found. |
||
39 | 29 | * @throws FailedToInstantiateFindable If the Findable could not be instantiated. |
|
40 | */ |
||
41 | 29 | public function find(array $criteria, Engine $engine = null): View |
|
57 | |||
58 | /** |
||
59 | * Get the config key for the Findables definitions. |
||
60 | * |
||
61 | * @since 0.1.0 |
||
62 | * |
||
63 | 30 | * @return string Config key use to define the Findables. |
|
64 | */ |
||
65 | 30 | protected function getFindablesConfigKey(): string |
|
69 | |||
70 | /** |
||
71 | * Get the NullObject. |
||
72 | * |
||
73 | * @since 0.1.1 |
||
74 | * |
||
75 | * @return NullView NullObject for the current Finder. |
||
76 | * @throws FailedToInstantiateFindable If the Findable could not be instantiated. |
||
77 | */ |
||
78 | public function getNullObject(): NullView |
||
82 | } |
||
83 |