|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* This file is part of graze/unicontroller-client. |
|
4
|
|
|
* |
|
5
|
|
|
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6
|
|
|
* |
|
7
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
8
|
|
|
* file that was distributed with this source code. |
|
9
|
|
|
* |
|
10
|
|
|
* @license https://github.com/graze/unicontroller-client/blob/master/LICENSE.md |
|
11
|
|
|
* @link https://github.com/graze/unicontroller-client |
|
12
|
|
|
*/ |
|
13
|
|
|
namespace Graze\UnicontrollerClient\Entity\Entity; |
|
14
|
|
|
|
|
15
|
|
|
use Graze\UnicontrollerClient\Entity\Entity\EntityInterface; |
|
16
|
|
|
|
|
17
|
|
|
class EntityShiftDefinition implements EntityInterface |
|
18
|
|
|
{ |
|
19
|
|
|
/** |
|
20
|
|
|
* @var string |
|
21
|
|
|
*/ |
|
22
|
|
|
protected $fromDay; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @var int |
|
26
|
|
|
*/ |
|
27
|
|
|
protected $fromHour; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* @var int |
|
31
|
|
|
*/ |
|
32
|
|
|
protected $fromMinutte; |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @var string |
|
36
|
|
|
*/ |
|
37
|
|
|
protected $toDay; |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* @var int |
|
41
|
|
|
*/ |
|
42
|
|
|
protected $toHour; |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* @var int |
|
46
|
|
|
*/ |
|
47
|
|
|
protected $toMinutte; |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* @var string |
|
51
|
|
|
*/ |
|
52
|
|
|
protected $shiftText; |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* @var int |
|
56
|
|
|
*/ |
|
57
|
|
|
protected $fromDay2; |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* @var int |
|
61
|
|
|
*/ |
|
62
|
|
|
protected $toDay2; |
|
63
|
|
|
|
|
64
|
|
|
/** |
|
65
|
|
|
* @var string |
|
66
|
|
|
*/ |
|
67
|
|
|
protected $from; |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* @var string |
|
71
|
|
|
*/ |
|
72
|
|
|
protected $to; |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* @return string |
|
76
|
|
|
*/ |
|
77
|
2 |
|
public function getFromDay() |
|
78
|
|
|
{ |
|
79
|
2 |
|
return $this->fromDay; |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* @param string $fromDay |
|
84
|
|
|
*/ |
|
85
|
|
|
public function setFromDay($fromDay) |
|
86
|
|
|
{ |
|
87
|
|
|
$this->fromDay = $fromDay; |
|
88
|
|
|
} |
|
89
|
|
|
|
|
90
|
|
|
/** |
|
91
|
|
|
* @return int |
|
92
|
|
|
*/ |
|
93
|
2 |
|
public function getFromHour() |
|
94
|
|
|
{ |
|
95
|
2 |
|
return $this->fromHour; |
|
96
|
|
|
} |
|
97
|
|
|
|
|
98
|
|
|
/** |
|
99
|
|
|
* @param int $fromHour |
|
100
|
|
|
*/ |
|
101
|
|
|
public function setFromHour($fromHour) |
|
102
|
|
|
{ |
|
103
|
|
|
$this->fromHour = $fromHour; |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* @return int |
|
108
|
|
|
*/ |
|
109
|
2 |
|
public function getFromMinutte() |
|
110
|
|
|
{ |
|
111
|
2 |
|
return $this->fromMinutte; |
|
112
|
|
|
} |
|
113
|
|
|
|
|
114
|
|
|
/** |
|
115
|
|
|
* @param int $fromMinutte |
|
116
|
|
|
*/ |
|
117
|
|
|
public function setFromMinutte($fromMinutte) |
|
118
|
|
|
{ |
|
119
|
|
|
$this->fromMinutte = $fromMinutte; |
|
120
|
|
|
} |
|
121
|
|
|
|
|
122
|
|
|
/** |
|
123
|
|
|
* @return string |
|
124
|
|
|
*/ |
|
125
|
2 |
|
public function getToDay() |
|
126
|
|
|
{ |
|
127
|
2 |
|
return $this->toDay; |
|
128
|
|
|
} |
|
129
|
|
|
|
|
130
|
|
|
/** |
|
131
|
|
|
* @param string $toDay |
|
132
|
|
|
*/ |
|
133
|
|
|
public function setToDay($toDay) |
|
134
|
|
|
{ |
|
135
|
|
|
$this->toDay = $toDay; |
|
136
|
|
|
} |
|
137
|
|
|
|
|
138
|
|
|
/** |
|
139
|
|
|
* @return int |
|
140
|
|
|
*/ |
|
141
|
2 |
|
public function getToHour() |
|
142
|
|
|
{ |
|
143
|
2 |
|
return $this->toHour; |
|
144
|
|
|
} |
|
145
|
|
|
|
|
146
|
|
|
/** |
|
147
|
|
|
* @param int $toHour |
|
148
|
|
|
*/ |
|
149
|
|
|
public function setToHour($toHour) |
|
150
|
|
|
{ |
|
151
|
|
|
$this->toHour = $toHour; |
|
152
|
|
|
} |
|
153
|
|
|
|
|
154
|
|
|
/** |
|
155
|
|
|
* @return int |
|
156
|
|
|
*/ |
|
157
|
2 |
|
public function getToMinutte() |
|
158
|
|
|
{ |
|
159
|
2 |
|
return $this->toMinutte; |
|
160
|
|
|
} |
|
161
|
|
|
|
|
162
|
|
|
/** |
|
163
|
|
|
* @param int $toMinutte |
|
164
|
|
|
*/ |
|
165
|
|
|
public function setToMinutte($toMinutte) |
|
166
|
|
|
{ |
|
167
|
|
|
$this->toMinutte = $toMinutte; |
|
168
|
|
|
} |
|
169
|
|
|
|
|
170
|
|
|
/** |
|
171
|
|
|
* @return string |
|
172
|
|
|
*/ |
|
173
|
2 |
|
public function getShiftText() |
|
174
|
|
|
{ |
|
175
|
2 |
|
return $this->shiftText; |
|
176
|
|
|
} |
|
177
|
|
|
|
|
178
|
|
|
/** |
|
179
|
|
|
* @param string $shiftText |
|
180
|
|
|
*/ |
|
181
|
|
|
public function setShiftText($shiftText) |
|
182
|
|
|
{ |
|
183
|
|
|
$this->shiftText = $shiftText; |
|
184
|
|
|
} |
|
185
|
|
|
|
|
186
|
|
|
/** |
|
187
|
|
|
* @return int |
|
188
|
|
|
*/ |
|
189
|
2 |
|
public function getFromDay2() |
|
190
|
|
|
{ |
|
191
|
2 |
|
return $this->fromDay2; |
|
192
|
|
|
} |
|
193
|
|
|
|
|
194
|
|
|
/** |
|
195
|
|
|
* @param int $fromDay2 |
|
196
|
|
|
*/ |
|
197
|
|
|
public function setFromDay2($fromDay2) |
|
198
|
|
|
{ |
|
199
|
|
|
$this->fromDay2 = $fromDay2; |
|
200
|
|
|
} |
|
201
|
|
|
|
|
202
|
|
|
/** |
|
203
|
|
|
* @return int |
|
204
|
|
|
*/ |
|
205
|
2 |
|
public function getToDay2() |
|
206
|
|
|
{ |
|
207
|
2 |
|
return $this->toDay2; |
|
208
|
|
|
} |
|
209
|
|
|
|
|
210
|
|
|
/** |
|
211
|
|
|
* @param int $toDay2 |
|
212
|
|
|
*/ |
|
213
|
|
|
public function setToDay2($toDay2) |
|
214
|
|
|
{ |
|
215
|
|
|
$this->toDay2 = $toDay2; |
|
216
|
|
|
} |
|
217
|
|
|
|
|
218
|
|
|
/** |
|
219
|
|
|
* @return string |
|
220
|
|
|
*/ |
|
221
|
2 |
|
public function getFrom() |
|
222
|
|
|
{ |
|
223
|
2 |
|
return $this->from; |
|
224
|
|
|
} |
|
225
|
|
|
|
|
226
|
|
|
/** |
|
227
|
|
|
* @param string $from |
|
228
|
|
|
*/ |
|
229
|
|
|
public function setFrom($from) |
|
230
|
|
|
{ |
|
231
|
|
|
$this->from = $from; |
|
232
|
|
|
} |
|
233
|
|
|
|
|
234
|
|
|
/** |
|
235
|
|
|
* @return string |
|
236
|
|
|
*/ |
|
237
|
2 |
|
public function getTo() |
|
238
|
|
|
{ |
|
239
|
2 |
|
return $this->to; |
|
240
|
|
|
} |
|
241
|
|
|
|
|
242
|
|
|
/** |
|
243
|
|
|
* @param string $to |
|
244
|
|
|
*/ |
|
245
|
|
|
public function setTo($to) |
|
246
|
|
|
{ |
|
247
|
|
|
$this->to = $to; |
|
248
|
|
|
} |
|
249
|
|
|
} |
|
250
|
|
|
|