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
2namespace Apie\Core\Datalayers;
3
4use Apie\Core\BoundedContext\BoundedContextId;
5use Apie\Core\Entities\EntityInterface;
6use Apie\Core\Lists\StringSet;
7use ReflectionClass;
8
9/**
10 * Implement this interface to a data layer class to add filters for the get resource list endpoint.
11 */
12interface 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}