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

AbstractColumn::getWidthCoeficiency()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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