Completed
Push — dev ( 845ef5...8eacd8 )
by
unknown
02:50
created

TextColumn   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 57
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getSortable() 0 4 1
A setSortable() 0 4 1
A getTranslatable() 0 4 1
A setTranslatable() 0 4 1
1
<?php
2
3
namespace eXpansion\Framework\Core\Model\Gui\Grid\Column;
4
5
6
/**
7
 * Class TextColumn
8
 *
9
 * @package eXpansion\Framework\Core\Model\Gui\Grid;
10
 * @author  oliver de Cramer <[email protected]>
11
 */
12
class TextColumn extends AbstractColumn
13
{
14
    /** @var bool  */
15
    protected $sortable;
16
17
    /** @var bool  */
18
    protected $translatable;
19
20
    /**
21
     * TextColumn constructor.
22
     *
23
     * @param string  $key
24
     * @param string  $name
25
     * @param float   $widthCoeficiency
26
     * @param boolean $sortable
27
     * @param boolean $translatable
28
     */
29 6
    public function __construct($key, $name, $widthCoeficiency, $sortable, $translatable)
30
    {
31 6
        parent::__construct($key, $name, $widthCoeficiency);
32
33 6
        $this->sortable = $sortable;
34 6
        $this->translatable = $translatable;
35 6
    }
36
37
    /**
38
     * @return bool
39
     */
40 1
    public function getSortable()
41
    {
42 1
        return $this->sortable;
43
    }
44
45
    /**
46
     * @param bool $sortable
47
     */
48 1
    public function setSortable($sortable)
49
    {
50 1
        $this->sortable = $sortable;
51 1
    }
52
53
    /**
54
     * @return bool
55
     */
56 6
    public function getTranslatable()
57
    {
58 6
        return $this->translatable;
59
    }
60
61
    /**
62
     * @param bool $translatable
63
     */
64 1
    public function setTranslatable($translatable)
65
    {
66 1
        $this->translatable = $translatable;
67
    }
68
}