Passed
Push — master ( c09f3d...b68917 )
by Andrea
12:33
created

JqgridDatiResponse   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResponse() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace Fi\CoreBundle\Utils;
4
5
/**
6
 * Description of JqgridResponse.
7
 *
8
 * @author manzolo
9
 */
10
abstract class JqgridDatiResponse implements GrigliaResponseDatiInterface
11
{
12
    private $risposta;
13
14 1
    public function __construct($vettorerisposta)
15
    {
16 1
        $this->risposta = $vettorerisposta;
17 1
    }
18
19 1
    public function getResponse()
20
    {
21 1
        return json_encode($this->risposta);
22
    }
23
}
24