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

CurrencyUpdateEvent::getVisible()   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 CurrencyUpdateEvent extends CurrencyCreateEvent
16
{
17
    /** @var int */
18
    protected $is_default;
19
20
21
    /** @var int */
22
    protected $visible;
23
24
    /**
25
     * @param int $currencyId
26
     */
27
    public function __construct($currencyId)
28
    {
29
        $this->setCurrencyId($currencyId);
30
    }
31
32
    /**
33
     * @return int
34
     */
35
    public function getIsDefault()
36
    {
37
        return $this->is_default;
38
    }
39
40
    /**
41
     * @param $is_default
42
     * @return $this
43
     */
44
    public function setIsDefault($is_default)
45
    {
46
        $this->is_default = $is_default;
47
48
        return $this;
49
    }
50
51
    /**
52
     * @return int
53
     */
54
    public function getVisible()
55
    {
56
        return $this->visible;
57
    }
58
59
    /**
60
     * @param $visible
61
     * @return $this
62
     */
63
    public function setVisible($visible)
64
    {
65
        $this->visible = $visible;
66
67
        return $this;
68
    }
69
}
70