cStayValue::getTotalStayNoTaxes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 4
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5 View Code Duplication
class cStayValue
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
6
{
7
8
    /**
9
     * @var float $FirstNight
10
     */
11
    protected $FirstNight = null;
12
13
    /**
14
     * @var float $FirstNightNoTaxes
15
     */
16
    protected $FirstNightNoTaxes = null;
17
18
    /**
19
     * @var float $TotalStay
20
     */
21
    protected $TotalStay = null;
22
23
    /**
24
     * @var float $TotalStayNoTaxes
25
     */
26
    protected $TotalStayNoTaxes = null;
27
28
    /**
29
     * @var float $AvgNight
30
     */
31
    protected $AvgNight = null;
32
33
    /**
34
     * @var float $RequiredDeposit
35
     */
36
    protected $RequiredDeposit = null;
37
38
    /**
39
     * @var int $ID_Currency
40
     */
41
    protected $ID_Currency = null;
42
43
    /**
44
     * @param float $FirstNight
45
     * @param float $FirstNightNoTaxes
46
     * @param float $TotalStay
47
     * @param float $TotalStayNoTaxes
48
     * @param float $AvgNight
49
     * @param float $RequiredDeposit
50
     * @param int $ID_Currency
51
     */
52
    public function __construct($FirstNight, $FirstNightNoTaxes, $TotalStay, $TotalStayNoTaxes, $AvgNight, $RequiredDeposit, $ID_Currency)
53
    {
54
        $this->FirstNight = $FirstNight;
55
        $this->FirstNightNoTaxes = $FirstNightNoTaxes;
56
        $this->TotalStay = $TotalStay;
57
        $this->TotalStayNoTaxes = $TotalStayNoTaxes;
58
        $this->AvgNight = $AvgNight;
59
        $this->RequiredDeposit = $RequiredDeposit;
60
        $this->ID_Currency = $ID_Currency;
61
    }
62
63
    /**
64
     * @return float
65
     */
66
    public function getFirstNight()
67
    {
68
        return $this->FirstNight;
69
    }
70
71
    /**
72
     * @param float $FirstNight
73
     * @return \Gueststream\PMS\IQWare\API\cStayValue
74
     */
75
    public function setFirstNight($FirstNight)
76
    {
77
        $this->FirstNight = $FirstNight;
78
        return $this;
79
    }
80
81
    /**
82
     * @return float
83
     */
84
    public function getFirstNightNoTaxes()
85
    {
86
        return $this->FirstNightNoTaxes;
87
    }
88
89
    /**
90
     * @param float $FirstNightNoTaxes
91
     * @return \Gueststream\PMS\IQWare\API\cStayValue
92
     */
93
    public function setFirstNightNoTaxes($FirstNightNoTaxes)
94
    {
95
        $this->FirstNightNoTaxes = $FirstNightNoTaxes;
96
        return $this;
97
    }
98
99
    /**
100
     * @return float
101
     */
102
    public function getTotalStay()
103
    {
104
        return $this->TotalStay;
105
    }
106
107
    /**
108
     * @param float $TotalStay
109
     * @return \Gueststream\PMS\IQWare\API\cStayValue
110
     */
111
    public function setTotalStay($TotalStay)
112
    {
113
        $this->TotalStay = $TotalStay;
114
        return $this;
115
    }
116
117
    /**
118
     * @return float
119
     */
120
    public function getTotalStayNoTaxes()
121
    {
122
        return $this->TotalStayNoTaxes;
123
    }
124
125
    /**
126
     * @param float $TotalStayNoTaxes
127
     * @return \Gueststream\PMS\IQWare\API\cStayValue
128
     */
129
    public function setTotalStayNoTaxes($TotalStayNoTaxes)
130
    {
131
        $this->TotalStayNoTaxes = $TotalStayNoTaxes;
132
        return $this;
133
    }
134
135
    /**
136
     * @return float
137
     */
138
    public function getAvgNight()
139
    {
140
        return $this->AvgNight;
141
    }
142
143
    /**
144
     * @param float $AvgNight
145
     * @return \Gueststream\PMS\IQWare\API\cStayValue
146
     */
147
    public function setAvgNight($AvgNight)
148
    {
149
        $this->AvgNight = $AvgNight;
150
        return $this;
151
    }
152
153
    /**
154
     * @return float
155
     */
156
    public function getRequiredDeposit()
157
    {
158
        return $this->RequiredDeposit;
159
    }
160
161
    /**
162
     * @param float $RequiredDeposit
163
     * @return \Gueststream\PMS\IQWare\API\cStayValue
164
     */
165
    public function setRequiredDeposit($RequiredDeposit)
166
    {
167
        $this->RequiredDeposit = $RequiredDeposit;
168
        return $this;
169
    }
170
171
    /**
172
     * @return int
173
     */
174
    public function getID_Currency()
175
    {
176
        return $this->ID_Currency;
177
    }
178
179
    /**
180
     * @param int $ID_Currency
181
     * @return \Gueststream\PMS\IQWare\API\cStayValue
182
     */
183
    public function setID_Currency($ID_Currency)
184
    {
185
        $this->ID_Currency = $ID_Currency;
186
        return $this;
187
    }
188
}
189