Completed
Push — master ( 69263b...b8d5de )
by Andrea
14:35
created

GridDati   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 88.89%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 21
ccs 8
cts 9
cp 0.8889
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResponse() 0 4 1
A __construct() 0 10 2
1
<?php
2
3
namespace Fi\CoreBundle\DependencyInjection;
4
5
/**
6
 * Description of Jqgrid.
7
 *
8
 * @author manzolo
9
 */
10
class GridDati
11
{
12
13
    private $grid;
14
15 1
    public function __construct($testata)
16
    {
17 1
        if (isset($testata["gridtype"])) {
18
            $gridtype = $testata["gridtype"];
19
        } else {
20 1
            $gridtype = 'Jqgrid';
21
        }
22 1
        $class = '\\Fi\\CoreBundle\\DependencyInjection\\' . $gridtype . "Dati";
23 1
        $this->grid = new $class($testata);
24 1
    }
25
26 1
    public function getResponse()
27
    {
28 1
        return $this->grid->getResponse();
29
    }
30
}
31