Conditions | 3 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function get(array $filters): array |
||
28 | { |
||
29 | $query = $this->createQueryResult(); |
||
30 | $this->createFoundationQuery($query, $filters); |
||
31 | |||
32 | $data = $this->result( |
||
33 | $query, |
||
34 | isset($filters['order']) ? |
||
35 | $filters['order'][0]['column'] : |
||
36 | 0, |
||
37 | isset($filters['order']) ? |
||
38 | $filters['order'][0]['dir'] : |
||
39 | 'ASC' |
||
40 | ); |
||
41 | |||
42 | return array( |
||
43 | 'data' => $data, |
||
44 | ); |
||
47 |