Completed
Push — master ( 209945...41a4bc )
by Matthew
07:41 queued 03:34
created

AbstractJqueryRenderer   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getJQuery() 0 3 1
A setJQuery() 0 3 1
A setPurl() 0 3 1
A getParams() 0 7 1
A getPurl() 0 3 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
    /**
31
     * @param array|null $params
32
     */
33
    public function getParams(array &$params = null)
34
    {
35
        parent::getParams($params);
36
        $params['dtc_grid_jquery'] = $this->jQuery;
37
        $params['dtc_grid_purl'] = $this->purl;
38
39
        return $params;
40
    }
41
}
42