Passed
Push — master ( 74531a...944a70 )
by Andrea
17:56
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 7
    public function __construct($vettorerisposta)
15
    {
16 7
        $this->risposta = $vettorerisposta;
17 7
    }
18
19 7
    public function getResponse()
20
    {
21 7
        return json_encode($this->risposta);
22
    }
23
}
24