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

AbstractJqueryRenderer::setJQuery()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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