Completed
Pull Request — master (#1780)
by Gilles
10:52
created

CurrencyCreateEvent::getFormat()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*************************************************************************************/
3
/*      This file is part of the Thelia package.                                     */
4
/*                                                                                   */
5
/*      Copyright (c) OpenStudio                                                     */
6
/*      email : [email protected]                                                       */
7
/*      web : http://www.thelia.net                                                  */
8
/*                                                                                   */
9
/*      For the full copyright and license information, please view the LICENSE.txt  */
10
/*      file that was distributed with this source code.                             */
11
/*************************************************************************************/
12
13
namespace Thelia\Core\Event\Currency;
14
15
class CurrencyCreateEvent extends CurrencyEvent
16
{
17
    protected $currency_name;
18
    protected $locale;
19
    protected $symbol;
20
    protected $format;
21
    protected $code;
22
    protected $rate;
23
24
    // Use currency_name to prevent conflict with Event::name property.
25
    public function getCurrencyName()
26
    {
27
        return $this->currency_name;
28
    }
29
30
    public function setCurrencyName($currency_name)
31
    {
32
        $this->currency_name = $currency_name;
33
34
        return $this;
35
    }
36
37
    public function getLocale()
38
    {
39
        return $this->locale;
40
    }
41
42
    public function setLocale($locale)
43
    {
44
        $this->locale = $locale;
45
46
        return $this;
47
    }
48
49
    public function getSymbol()
50
    {
51
        return $this->symbol;
52
    }
53
54
    public function setSymbol($symbol)
55
    {
56
        $this->symbol = $symbol;
57
58
        return $this;
59
    }
60
61
    public function getFormat()
62
    {
63
        return $this->format;
64
    }
65
66
    public function setFormat($format)
67
    {
68
        $this->format = $format;
69
70
        return $this;
71
    }
72
73
    public function getCode()
74
    {
75
        return $this->code;
76
    }
77
78
    public function setCode($code)
79
    {
80
        $this->code = $code;
81
82
        return $this;
83
    }
84
85
    public function getRate()
86
    {
87
        return $this->rate;
88
    }
89
90
    public function setRate($rate)
91
    {
92
        $this->rate = $rate;
93
94
        return $this;
95
    }
96
}
97