ClientSideDatatable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 24
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 7 1
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