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

AbstractColumn::setWidthCoeficiency()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace eXpansion\Framework\Core\Model\Gui\Grid\Column;
4
5
6
/**
7
 * Class AbstractColumn
8
 *
9
 * @package eXpansion\Framework\Core\Model\Gui\Grid\Column;
10
 * @author  oliver de Cramer <[email protected]>
11
 */
12
abstract class AbstractColumn
13
{
14
    /** @var string  */
15
    protected $key;
16
17
    /** @var string  */
18
    protected $name;
19
20
    /** @var float  */
21
    protected $widthCoeficiency;
22
23
    /**
24
     * AbstractColumn constructor.
25
     *
26
     * @param string $key
27
     * @param string $name
28
     * @param float $widthCoeficiency
29
     */
30 7
    public function __construct($key, $name, $widthCoeficiency)
31
    {
32 7
        $this->key = $key;
33 7
        $this->name = $name;
34 7
        $this->widthCoeficiency = $widthCoeficiency;
35 7
    }
36
37
    /**
38
     * @return string
39
     */
40 6
    public function getKey()
41
    {
42 6
        return $this->key;
43
    }
44
45
    /**
46
     * @param string $key
47
     */
48 1
    public function setKey($key)
49
    {
50 1
        $this->key = $key;
51 1
    }
52
53
    /**
54
     * @return string
55
     */
56 6
    public function getName()
57
    {
58 6
        return $this->name;
59
    }
60
61
    /**
62
     * @param string $name
63
     */
64 1
    public function setName($name)
65
    {
66 1
        $this->name = $name;
67 1
    }
68
69
    /**
70
     * @return float
71
     */
72 6
    public function getWidthCoeficiency()
73
    {
74 6
        return $this->widthCoeficiency;
75
    }
76
77
    /**
78
     * @param float $widthCoeficiency
79
     */
80 1
    public function setWidthCoeficiency($widthCoeficiency)
81
    {
82 1
        $this->widthCoeficiency = $widthCoeficiency;
83
    }
84
}