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 | namespace Apie\Core\Datalayers; |
| 3 | |
| 4 | use Apie\Core\BoundedContext\BoundedContextId; |
| 5 | use Apie\Core\Entities\EntityInterface; |
| 6 | use Apie\Core\Lists\StringSet; |
| 7 | use ReflectionClass; |
| 8 | |
| 9 | /** |
| 10 | * Implement this interface to a data layer class to add filters for the get resource list endpoint. |
| 11 | */ |
| 12 | interface ApieDatalayerWithFilters extends ApieDatalayer |
| 13 | { |
| 14 | /** |
| 15 | * @param ReflectionClass<covariant EntityInterface> $class |
| 16 | */ |
| 17 | public function getFilterColumns(ReflectionClass $class, BoundedContextId $boundedContextId): ?StringSet; |
| 18 | |
| 19 | /** |
| 20 | * @param ReflectionClass<covariant EntityInterface> $class |
| 21 | */ |
| 22 | public function getOrderByColumns(ReflectionClass $class, BoundedContextId $boundedContextId): ?StringSet; |
| 23 | } |