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

AbstractColumn   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 70
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 0
dl 0
loc 70
ccs 0
cts 30
cp 0
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getKey() 0 4 1
A setKey() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getWidthCoeficiency() 0 4 1
A setWidthCoeficiency() 0 4 1
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
}