Completed
Push — master ( ca4bd4...d89b8a )
by Mauro
03:26
created

Price   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 86
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 86
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getCurrency() 0 4 1
A setCurrency() 0 5 1
A isHidden() 0 4 1
A setHidden() 0 5 1
A getValue() 0 4 1
A setValue() 0 5 1
1
<?php
2
/*
3
 * This file is part of the La Voz Feed Generator package.
4
 *
5
 * (c) Zephia <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Zephia\LaVozFeed\Entity;
12
13
/**
14
 * Class Price
15
 *
16
 * @package Zephia\LaVozFeed\Entity
17
 * @author  Mauro Moreno <[email protected]>
18
 */
19
class Price extends Entity
20
{
21
    /**
22
     * @var string
23
     */
24
    private $currency = '$';
25
26
    /**
27
     * @var bool
28
     */
29
    private $hidden = false;
30
31
    /**
32
     * @var float
33
     */
34
    private $value = 0.0;
35
36
    /**
37
     * Get Currency
38
     *
39
     * @return string
40
     */
41
    public function getCurrency()
42
    {
43
        return $this->currency;
44
    }
45
46
    /**
47
     * Set Currency
48
     *
49
     * @param string $currency
50
     *
51
     * @return Price
52
     */
53
    public function setCurrency($currency)
54
    {
55
        $this->currency = $currency;
56
        return $this;
57
    }
58
59
    /**
60
     * Is Hidden
61
     *
62
     * @return boolean
63
     */
64
    public function isHidden()
65
    {
66
        return $this->hidden;
67
    }
68
69
    /**
70
     * Set Hidden
71
     *
72
     * @param boolean $hidden
73
     *
74
     * @return Price
75
     */
76
    public function setHidden($hidden)
77
    {
78
        $this->hidden = $hidden;
79
        return $this;
80
    }
81
82
    /**
83
     * Get Value
84
     *
85
     * @return float
86
     */
87
    public function getValue()
88
    {
89
        return $this->value;
90
    }
91
92
    /**
93
     * Set Value
94
     *
95
     * @param float $value
96
     *
97
     * @return Price
98
     */
99
    public function setValue($value)
100
    {
101
        $this->value = $value;
102
        return $this;
103
    }
104
}
105