AbstractJqueryRenderer::getParams()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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