Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace Olz\Entity\Common; |
4 | |
5 | use Doctrine\Common\Collections\Expr\Expression; |
6 | |
7 | /** |
8 | * Interface for doctrine entities that are searchable using the `searchEntities` RPC. Rgister new |
9 | * entities that implement this interface in `SearchEntitiesEndpoint.php`. |
10 | */ |
11 | interface SearchableInterface { |
12 | public static function getIdFieldNameForSearch(): string; |
13 | |
14 | public function getIdForSearch(): int; |
15 | |
16 | public static function getCriteriaForQuery(string $query): Expression; |
17 | |
18 | public function getTitleForSearch(): string; |
19 | } |