SkuskuCurrencyBase::getDecimals()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace GGGGino\SkuskuCartBundle\Model;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * SkuskuCurrency
9
 * @ORM\MappedSuperclass()
10
 */
11
abstract class SkuskuCurrencyBase
12
{
13
    /**
14
     * @var string
15
     *
16
     * @ORM\Column(name="name", type="string", length=32)
17
     */
18
    protected $name;
19
20
    /**
21
     * @var string
22
     *
23
     * @ORM\Column(name="iso_code", type="string", length=3)
24
     */
25
    protected $isoCode;
26
27
    /**
28
     * @var string
29
     *
30
     * @ORM\Column(name="sign", type="string", length=8)
31
     */
32
    protected $sign;
33
34
    /**
35
     * @var int
36
     *
37
     * @ORM\Column(name="blank", type="smallint", options={"default" : 0})
38
     */
39
    protected $blank = 0;
40
41
    /**
42
     * @var int
43
     *
44
     * @ORM\Column(name="format", type="smallint", options={"default" : 0})
45
     */
46
    protected $format = 0;
47
48
    /**
49
     * @var int
50
     *
51
     * @ORM\Column(name="decimals", type="smallint", options={"default" : 0})
52
     */
53
    protected $decimals = 0;
54
55
    /**
56
     * @var string
57
     *
58
     * @ORM\Column(name="conversion_rate", type="decimal", precision=13, scale=6, options={"default" : 0})
59
     */
60
    protected $conversionRate = 0;
61
62
    /**
63
     * @var bool
64
     *
65
     * @ORM\Column(name="deleted", type="boolean", options={"default" : 0})
66
     */
67
    protected $deleted = 0;
68
69
    /**
70
     * Set name.
71
     *
72
     * @param string $name
73
     *
74
     * @return SkuskuCurrencyBase
75
     */
76
    public function setName($name)
77
    {
78
        $this->name = $name;
79
80
        return $this;
81
    }
82
83
    /**
84
     * Get name.
85
     *
86
     * @return string
87
     */
88
    public function getName()
89
    {
90
        return $this->name;
91
    }
92
93
    /**
94
     * Set isoCode.
95
     *
96
     * @param string $isoCode
97
     *
98
     * @return SkuskuCurrencyBase
99
     */
100
    public function setIsoCode($isoCode)
101
    {
102
        $this->isoCode = $isoCode;
103
104
        return $this;
105
    }
106
107
    /**
108
     * Get isoCode.
109
     *
110
     * @return string
111
     */
112
    public function getIsoCode()
113
    {
114
        return $this->isoCode;
115
    }
116
117
    /**
118
     * Set sign.
119
     *
120
     * @param string $sign
121
     *
122
     * @return SkuskuCurrencyBase
123
     */
124
    public function setSign($sign)
125
    {
126
        $this->sign = $sign;
127
128
        return $this;
129
    }
130
131
    /**
132
     * Get sign.
133
     *
134
     * @return string
135
     */
136
    public function getSign()
137
    {
138
        return $this->sign;
139
    }
140
141
    /**
142
     * Set blank.
143
     *
144
     * @param int $blank
145
     *
146
     * @return SkuskuCurrencyBase
147
     */
148
    public function setBlank($blank)
149
    {
150
        $this->blank = $blank;
151
152
        return $this;
153
    }
154
155
    /**
156
     * Get blank.
157
     *
158
     * @return int
159
     */
160
    public function getBlank()
161
    {
162
        return $this->blank;
163
    }
164
165
    /**
166
     * Set format.
167
     *
168
     * @param int $format
169
     *
170
     * @return SkuskuCurrencyBase
171
     */
172
    public function setFormat($format)
173
    {
174
        $this->format = $format;
175
176
        return $this;
177
    }
178
179
    /**
180
     * Get format.
181
     *
182
     * @return int
183
     */
184
    public function getFormat()
185
    {
186
        return $this->format;
187
    }
188
189
    /**
190
     * Set decimals.
191
     *
192
     * @param int $decimals
193
     *
194
     * @return SkuskuCurrencyBase
195
     */
196
    public function setDecimals($decimals)
197
    {
198
        $this->decimals = $decimals;
199
200
        return $this;
201
    }
202
203
    /**
204
     * Get decimals.
205
     *
206
     * @return int
207
     */
208
    public function getDecimals()
209
    {
210
        return $this->decimals;
211
    }
212
213
    /**
214
     * Set conversionRate.
215
     *
216
     * @param string $conversionRate
217
     *
218
     * @return SkuskuCurrencyBase
219
     */
220
    public function setConversionRate($conversionRate)
221
    {
222
        $this->conversionRate = $conversionRate;
223
224
        return $this;
225
    }
226
227
    /**
228
     * Get conversionRate.
229
     *
230
     * @return string
231
     */
232
    public function getConversionRate()
233
    {
234
        return $this->conversionRate;
235
    }
236
237
    /**
238
     * Set deleted.
239
     *
240
     * @param bool $deleted
241
     *
242
     * @return SkuskuCurrencyBase
243
     */
244
    public function setDeleted($deleted)
245
    {
246
        $this->deleted = $deleted;
247
248
        return $this;
249
    }
250
251
    /**
252
     * Get deleted.
253
     *
254
     * @return bool
255
     */
256
    public function getDeleted()
257
    {
258
        return $this->deleted;
259
    }
260
}
261