AbstractJqueryRenderer   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getJQuery() 0 3 1
A setJQuery() 0 3 1
A setPurl() 0 3 1
A getPurl() 0 3 1
A getParams() 0 7 1
1
<?php
2
3
namespace Dtc\GridBundle\Grid\Renderer;
4
5
abstract class AbstractJqueryRenderer extends TableGridRenderer
6
{
7
    protected $jQuery = [];
8
    protected $purl;
9
10
    public function getPurl()
11
    {
12
        return $this->purl;
13
    }
14
15
    public function setPurl($purl)
16
    {
17
        $this->purl = $purl;
18
    }
19
20
    public function getJQuery()
21
    {
22
        return $this->jQuery;
23
    }
24
25
    public function setJQuery(array $jQuery)
26
    {
27
        $this->jQuery = $jQuery;
28
    }
29
30
    public function getParams(array &$params = null)
31
    {
32
        parent::getParams($params);
33
        $params['dtc_grid_jquery'] = $this->jQuery;
34
        $params['dtc_grid_purl'] = $this->purl;
35
36
        return $params;
37
    }
38
}
39