Total Complexity | 1 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class TimeEntries extends AbstractRepository |
||
12 | { |
||
13 | public const API_ROOT = "time_entries"; |
||
14 | |||
15 | public const TIME_ENTRY_FILTER_PROJECT_ID = "project_id"; |
||
16 | public const TIME_ENTRY_FILTER_USER_ID = "user_id"; |
||
17 | public const TIME_ENTRY_FILTER_SPENT_ON = "spent_on"; |
||
18 | |||
19 | protected static array $allowed_filters = [ |
||
20 | self::TIME_ENTRY_FILTER_SPENT_ON => RepositoryInterface::SEARCH_PARAM_TYPE_DATES_ARRAY, |
||
21 | self::TIME_ENTRY_FILTER_USER_ID => RepositoryInterface::SEARCH_PARAM_TYPE_INT, |
||
22 | self::TIME_ENTRY_FILTER_PROJECT_ID => RepositoryInterface::SEARCH_PARAM_TYPE_INT |
||
23 | ]; |
||
24 | |||
25 | public function getModelClass(): string |
||
30 |