Completed
Pull Request — master (#51)
by De Cramer
02:42
created

ActionColumn::setRenderer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 4
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace eXpansion\Framework\Core\Model\Gui\Grid\Column;
4
5
6
/**
7
 * Class ActionColumn
8
 *
9
 * @package eXpansion\Framework\Core\Model\Gui\Grid;
10
 * @author  oliver de Cramer <[email protected]>
11
 */
12 View Code Duplication
class ActionColumn extends AbstractColumn
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
13
{
14
    protected $callable;
15
16
    protected $renderer;
17
18
    public function __construct($key, $name, $widthCoeficiency, $sortable, $translatable)
19
    {
20
        parent::__construct($key, $name, $widthCoeficiency);
21
22
        $this->callable = $sortable;
23
        $this->renderer = $translatable;
24
    }
25
26
    /**
27
     * @return mixed
28
     */
29
    public function getCallable()
30
    {
31
        return $this->callable;
32
    }
33
34
    /**
35
     * @param mixed $callable
36
     */
37
    public function setCallable($callable)
38
    {
39
        $this->callable = $callable;
40
    }
41
42
    /**
43
     * @return mixed
44
     */
45
    public function getRenderer()
46
    {
47
        return $this->renderer;
48
    }
49
50
    /**
51
     * @param mixed $renderer
52
     */
53
    public function setRenderer($renderer)
54
    {
55
        $this->renderer = $renderer;
56
    }
57
}