ClientSideDatatable::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 7
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace DoctrineDatatable;
4
5
/**
6
 * Class ServerSideDatatable.
7
 *
8
 * @author Mathieu Petrini <[email protected]>
9
 */
10
class ClientSideDatatable extends Datatable
11
{
12
    /**
13
     * PUBLIC METHODS.
14
     */
15
16
    /**
17
     * @author Mathieu Petrini <[email protected]>
18
     *
19
     * @param mixed[] $filters
20
     *
21
     * @return mixed[]
22
     *
23
     * @throws Exception\ResolveColumnNotHandle
24
     * @throws Exception\UnfilterableColumn
25
     * @throws Exception\WhereColumnNotHandle
26
     */
27
    public function get(array $filters): array
28
    {
29
        $this->createQueryResult();
30
        $this->createFoundationQuery($filters);
31
32
        return array(
33
            'data' => $this->data($filters),
34
        );
35
    }
36
}
37