GridDati::getResponse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Fi\CoreBundle\Utils;
4
5
/**
6
 * Description of Jqgrid.
7
 *
8
 * @author manzolo
9
 */
10
class GridDati
11
{
12
13
    private $grid;
14
15 6
    public function __construct($testata)
16
    {
17 6
        if (isset($testata["gridtype"])) {
18
            $gridtype = $testata["gridtype"];
19
        } else {
20 6
            $gridtype = 'Jqgrid';
21
        }
22 6
        $class = '\\Fi\\CoreBundle\\Utils\\' . $gridtype . "Dati";
23 6
        $this->grid = new $class($testata);
24 6
    }
25
26 6
    public function getResponse()
27
    {
28 6
        return $this->grid->getResponse();
29
    }
30
}
31