Completed
Push — develop ( 168e99...0122be )
by
unknown
18:37 queued 07:11
created

ModuleOptions::setTaxRate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
 */
9
  
10
/** */
11
namespace Orders\Options;
12
13
use Zend\Stdlib\AbstractOptions;
14
15
/**
16
 * ${CARET}
17
 * 
18
 * @author Mathias Gelhausen <[email protected]>
19
 * @todo write test 
20
 */
21
class ModuleOptions extends AbstractOptions
22
{
23
24
    /**
25
     * Currency (ISO 4217)
26
     *
27
     * @ODM\String
28
     * @var string
29
     */
30
    protected $currency = 'EUR';
31
32
    /**
33
     * Currency symbol.
34
     *
35
     * @ODM\String
36
     * @var string
37
     */
38
    protected $currencySymbol = '€';
39
40
    /**
41
     * The tax rate in percent.
42
     *
43
     * @var float
44
     */
45
    protected $taxRate = 19;
46
47
    /**
48
     * @param string $currency
49
     *
50
     * @return self
51
     */
52
    public function setCurrency($currency)
53
    {
54
        $this->currency = $currency;
55
56
        return $this;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getCurrency()
63
    {
64
        return $this->currency;
65
    }
66
67
    /**
68
     * @param string $currencySymbol
69
     *
70
     * @return self
71
     */
72
    public function setCurrencySymbol($currencySymbol)
73
    {
74
        $this->currencySymbol = $currencySymbol;
75
76
        return $this;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getCurrencySymbol()
83
    {
84
        return $this->currencySymbol;
85
    }
86
87
    /**
88
     * @param float $taxRate
89
     *
90
     * @return self
91
     */
92
    public function setTaxRate($taxRate)
93
    {
94
        $this->taxRate = $taxRate;
95
96
        return $this;
97
    }
98
99
    /**
100
     * @return float
101
     */
102
    public function getTaxRate()
103
    {
104
        return $this->taxRate;
105
    }
106
107
108
    
109
}