Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 0 |
1 | <?php |
||
11 | class TransactionLineRepository extends AbstractRepository implements LimitedAccessSubQueryInterface, ExportExcelInterface |
||
12 | { |
||
13 | /** |
||
14 | * Returns pure SQL to get ID of all objects that are accessible to given user. |
||
15 | * |
||
16 | * @param null|User $user |
||
17 | * |
||
18 | * @return string |
||
19 | */ |
||
20 | 7 | public function getAccessibleSubQuery(?User $user): string |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * Generates an Excel spreadsheet with the query result |
||
37 | * |
||
38 | * @param Query $query |
||
39 | * |
||
40 | * @return string name of the temporary file |
||
41 | */ |
||
42 | public function exportExcel(Query $query): string |
||
49 |