Completed
Push — master ( 0dd019...03ce40 )
by Burhan
04:22
created

EntityVarDatabaseField   A

Complexity

Total Complexity 16

Size/Duplication

Total Lines 168
Duplicated Lines 0 %

Test Coverage

Coverage 41.03%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 25
c 1
b 0
f 0
dl 0
loc 168
ccs 16
cts 39
cp 0.4103
rs 10
wmc 16

16 Methods

Rating   Name   Duplication   Size   Complexity  
A getTrimTrailingSpaces() 0 3 1
A setNumberOfDecimals() 0 3 1
A getLength() 0 3 1
A getNumberOfDecimals() 0 3 1
A setDataField() 0 3 1
A getcPadding() 0 3 1
A setLength() 0 3 1
A setDataSource() 0 3 1
A setTrimTrailingSpaces() 0 3 1
A setcPadding() 0 3 1
A getDisplayLength() 0 3 1
A getDataField() 0 3 1
A setDisplayLength() 0 3 1
A getDataSource() 0 3 1
A getName() 0 3 1
A setName() 0 3 1
1
<?php
2
/**
3
 * This file is part of graze/unicontroller-client.
4
 *
5
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license https://github.com/graze/unicontroller-client/blob/master/LICENSE.md
11
 * @link https://github.com/graze/unicontroller-client
12
 */
13
namespace Graze\UnicontrollerClient\Entity\Entity;
14
15
use Graze\UnicontrollerClient\Entity\Entity\EntityInterface;
16
17
class EntityVarDatabaseField implements EntityInterface
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $name;
23
24
    /**
25
     * @var string
26
     */
27
    protected $dataSource;
28
29
    /**
30
     * @var string
31
     */
32
    protected $dataField;
33
34
    /**
35
     * @var int
36
     */
37
    protected $displayLength;
38
39
    /**
40
     * @var int
41
     */
42
    protected $trimTrailingSpaces;
43
44
    /**
45
     * @var int
46
     */
47
    protected $numberOfDecimals;
48
49
    /**
50
     * @var int
51
     */
52
    protected $cPadding;
53
54
    /**
55
     * @var int
56
     */
57
    protected $length;
58
59
    /**
60
     * @return string
61
     */
62 1
    public function getName()
63
    {
64 1
        return $this->name;
65
    }
66
67
    /**
68
     * @param string $name
69
     */
70
    public function setName($name)
71
    {
72
        $this->name = $name;
73
    }
74
75
    /**
76
     * @return string
77
     */
78 1
    public function getDataSource()
79
    {
80 1
        return $this->dataSource;
81
    }
82
83
    /**
84
     * @param string $dataSource
85
     */
86
    public function setDataSource($dataSource)
87
    {
88
        $this->dataSource = $dataSource;
89
    }
90
91
    /**
92
     * @return string
93
     */
94 1
    public function getDataField()
95
    {
96 1
        return $this->dataField;
97
    }
98
99
    /**
100
     * @param string $dataField
101
     */
102
    public function setDataField($dataField)
103
    {
104
        $this->dataField = $dataField;
105
    }
106
107
    /**
108
     * @return int
109
     */
110 1
    public function getDisplayLength()
111
    {
112 1
        return $this->displayLength;
113
    }
114
115
    /**
116
     * @param int $displayLength
117
     */
118
    public function setDisplayLength($displayLength)
119
    {
120
        $this->displayLength = $displayLength;
121
    }
122
123
    /**
124
     * @return int
125
     */
126 1
    public function getTrimTrailingSpaces()
127
    {
128 1
        return $this->trimTrailingSpaces;
129
    }
130
131
    /**
132
     * @param int $trimTrailingSpaces
133
     */
134
    public function setTrimTrailingSpaces($trimTrailingSpaces)
135
    {
136
        $this->trimTrailingSpaces = $trimTrailingSpaces;
137
    }
138
139
    /**
140
     * @return int
141
     */
142 1
    public function getNumberOfDecimals()
143
    {
144 1
        return $this->numberOfDecimals;
145
    }
146
147
    /**
148
     * @param int $numberOfDecimals
149
     */
150
    public function setNumberOfDecimals($numberOfDecimals)
151
    {
152
        $this->numberOfDecimals = $numberOfDecimals;
153
    }
154
155
    /**
156
     * @return int
157
     */
158 1
    public function getcPadding()
159
    {
160 1
        return $this->cPadding;
161
    }
162
163
    /**
164
     * @param int $cPadding
165
     */
166
    public function setcPadding($cPadding)
167
    {
168
        $this->cPadding = $cPadding;
169
    }
170
171
    /**
172
     * @return int
173
     */
174 1
    public function getLength()
175
    {
176 1
        return $this->length;
177
    }
178
179
    /**
180
     * @param int $length
181
     */
182
    public function setLength($length)
183
    {
184
        $this->length = $length;
185
    }
186
}
187