1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the core-library package. |
5
|
|
|
* |
6
|
|
|
* (c) 2018 WEBEWEB |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace WBW\Library\Core\ThirdParty\SkiData\Model; |
13
|
|
|
|
14
|
|
|
use DateTime; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* Start record format . |
18
|
|
|
* |
19
|
|
|
* @author webeweb <https://github.com/webeweb/> |
20
|
|
|
* @package WBW\Library\Core\ThirdParty\SkiData\Model |
21
|
|
|
*/ |
22
|
|
|
class StartRecordFormat { |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* Currency. |
26
|
|
|
* |
27
|
|
|
* @var string|null |
28
|
|
|
*/ |
29
|
|
|
private $currency; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* Date of file. |
33
|
|
|
* |
34
|
|
|
* @var DateTime|null |
35
|
|
|
*/ |
36
|
|
|
private $dateFile; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* Facility number |
40
|
|
|
* |
41
|
|
|
* @var int|null |
42
|
|
|
*/ |
43
|
|
|
private $facilityNumber; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* Number of records. |
47
|
|
|
* |
48
|
|
|
* @var int|null |
49
|
|
|
*/ |
50
|
|
|
private $numberRecords; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* Version of record structure. |
54
|
|
|
* |
55
|
|
|
* @var int|null |
56
|
|
|
*/ |
57
|
|
|
private $versionRecordStructure; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* Constructor. |
61
|
|
|
*/ |
62
|
|
|
public function __construct() { |
63
|
|
|
// NOTHING TO DO |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* Get the currency. |
68
|
|
|
* |
69
|
|
|
* @return string|null Returns the currency. |
70
|
|
|
*/ |
71
|
|
|
public function getCurrency(): ?string { |
72
|
|
|
return $this->currency; |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* Get the date of file. |
77
|
|
|
* |
78
|
|
|
* @return DateTime|null Returns the date of file. |
79
|
|
|
*/ |
80
|
|
|
public function getDateFile(): ?DateTime { |
81
|
|
|
return $this->dateFile; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* Get the facility number. |
86
|
|
|
* |
87
|
|
|
* @return int|null Returns the facility number. |
88
|
|
|
*/ |
89
|
|
|
public function getFacilityNumber(): ?int { |
90
|
|
|
return $this->facilityNumber; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* Get the number of records. |
95
|
|
|
* |
96
|
|
|
* @return int|null Returns the number of records. |
97
|
|
|
*/ |
98
|
|
|
public function getNumberRecords(): ?int { |
99
|
|
|
return $this->numberRecords; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* Get the version of record structure. |
104
|
|
|
* |
105
|
|
|
* @return int|null Returns the version of record structure. |
106
|
|
|
*/ |
107
|
|
|
public function getVersionRecordStructure(): ?int { |
108
|
|
|
return $this->versionRecordStructure; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* Set the currency. |
113
|
|
|
* |
114
|
|
|
* @param string|null $currency The currency. |
115
|
|
|
* @return StartRecordFormat Returns this start record format. |
116
|
|
|
*/ |
117
|
|
|
public function setCurrency(?string $currency): StartRecordFormat { |
118
|
|
|
$this->currency = $currency; |
119
|
|
|
return $this; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* Set the date of file. |
124
|
|
|
* |
125
|
|
|
* @param DateTime|null $dateFile The date of file. |
126
|
|
|
* @return StartRecordFormat Returns this start record format. |
127
|
|
|
*/ |
128
|
|
|
public function setDateFile(?DateTime $dateFile): StartRecordFormat { |
129
|
|
|
$this->dateFile = $dateFile; |
130
|
|
|
return $this; |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* Set the facility number. |
135
|
|
|
* |
136
|
|
|
* @param int|null $facilityNumber The facility number. |
137
|
|
|
* @return StartRecordFormat Returns this start record format. |
138
|
|
|
*/ |
139
|
|
|
public function setFacilityNumber(?int $facilityNumber): StartRecordFormat { |
140
|
|
|
$this->facilityNumber = $facilityNumber; |
141
|
|
|
return $this; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* Set the number of records. |
146
|
|
|
* |
147
|
|
|
* @param int|null $numberRecords The number of records. |
148
|
|
|
* @return StartRecordFormat Returns this start record format. |
149
|
|
|
*/ |
150
|
|
|
public function setNumberRecords(?int $numberRecords): StartRecordFormat { |
151
|
|
|
$this->numberRecords = $numberRecords; |
152
|
|
|
return $this; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* Set the version of record structure. |
157
|
|
|
* |
158
|
|
|
* @param int|null $versionRecordStructure The version of record structure. |
159
|
|
|
* @return StartRecordFormat Returns this start record format. |
160
|
|
|
*/ |
161
|
|
|
public function setVersionRecordStructure(?int $versionRecordStructure): StartRecordFormat { |
162
|
|
|
$this->versionRecordStructure = $versionRecordStructure; |
163
|
|
|
return $this; |
164
|
|
|
} |
165
|
|
|
} |
166
|
|
|
|