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 | /** |
| 6 | * Interface for doctrine entities that are positionable compared to other entities in the same |
| 7 | * table using the `searchEntities` and `getEntitiesAroundPosition` RPCs. Rgister new entities that |
| 8 | * implement this interface in `SearchEntitiesEndpoint.php`. |
| 9 | */ |
| 10 | interface PositionableInterface extends SearchableInterface { |
| 11 | public static function getPositionFieldName(string $entity_field): string; |
| 12 | |
| 13 | public function getPositionForEntityField(string $entity_field): ?float; |
| 14 | } |