1 | <?php |
||
16 | class DumpMetaInformation { |
||
17 | |||
18 | /** |
||
19 | * Id of the dump |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | private $dumpId; |
||
24 | |||
25 | /** |
||
26 | * Id of the item that represents the data source of the dump |
||
27 | * |
||
28 | * @var ItemId |
||
29 | */ |
||
30 | private $sourceItemId; |
||
31 | |||
32 | /** |
||
33 | * Properties for identifiers of the dump. |
||
34 | * |
||
35 | * @var PropertyId[] |
||
36 | */ |
||
37 | private $identifierPropertyIds; |
||
38 | |||
39 | /** |
||
40 | * Date of import |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | private $importDate; |
||
45 | |||
46 | /** |
||
47 | * Language code of values of the dump |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | private $languageCode; |
||
52 | |||
53 | /** |
||
54 | * Source url of the downloaded dump |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | private $sourceUrl; |
||
59 | |||
60 | /** |
||
61 | * Size of the imported dump in byte |
||
62 | * |
||
63 | * @var int |
||
64 | */ |
||
65 | private $size; |
||
66 | |||
67 | /** |
||
68 | * Id of the item that represents the license of the database |
||
69 | * |
||
70 | * @var ItemId |
||
71 | */ |
||
72 | private $licenseItemId; |
||
73 | |||
74 | /** |
||
75 | * @param string $dumpId |
||
76 | * @param ItemId $sourceItemId |
||
77 | * @param PropertyId[] $identifierPropertyIds |
||
78 | * @param string $importDate |
||
79 | * @param string $languageCode |
||
80 | * @param string $sourceUrl |
||
81 | * @param int $size |
||
82 | * @param ItemId $licenseItemId |
||
83 | * |
||
84 | * @throws InvalidArgumentException |
||
85 | */ |
||
86 | public function __construct( |
||
111 | |||
112 | /** |
||
113 | * @return string |
||
114 | */ |
||
115 | public function getDumpId() { |
||
118 | |||
119 | /** |
||
120 | * @return ItemId |
||
121 | */ |
||
122 | public function getSourceItemId() { |
||
125 | |||
126 | /** |
||
127 | * @return \Wikibase\DataModel\Entity\PropertyId[] |
||
128 | */ |
||
129 | public function getIdentifierPropertyIds() { |
||
132 | |||
133 | /** |
||
134 | * @return string |
||
135 | */ |
||
136 | public function getImportDate() { |
||
139 | |||
140 | /** |
||
141 | * @return string |
||
142 | */ |
||
143 | public function getLanguageCode() { |
||
146 | |||
147 | /** |
||
148 | * @return string |
||
149 | */ |
||
150 | public function getSourceUrl() { |
||
153 | |||
154 | /** |
||
155 | * @return int |
||
156 | */ |
||
157 | public function getSize() { |
||
160 | |||
161 | /** |
||
162 | * @return ItemId |
||
163 | */ |
||
164 | public function getLicenseItemId() { |
||
167 | |||
168 | /** |
||
169 | * @param string $dumpId |
||
170 | * |
||
171 | * @throws InvalidArgumentException |
||
172 | */ |
||
173 | private function setDumpId( $dumpId ) { |
||
182 | |||
183 | /** |
||
184 | * @param string $languageCode |
||
185 | * |
||
186 | * @throws InvalidArgumentException |
||
187 | */ |
||
188 | private function setLanguageCode( $languageCode ) { |
||
196 | |||
197 | /** |
||
198 | * @param string $importDate |
||
199 | * |
||
200 | * @throws InvalidArgumentException |
||
201 | */ |
||
202 | private function setImportDate( $importDate ) { |
||
212 | |||
213 | /** |
||
214 | * @param string $sourceUrl |
||
215 | * |
||
216 | * @throws InvalidArgumentException |
||
217 | */ |
||
218 | private function setSourceUrl( $sourceUrl ) { |
||
229 | |||
230 | /** |
||
231 | * @param int $size |
||
232 | * |
||
233 | * @throws InvalidArgumentException |
||
234 | */ |
||
235 | private function setSize( $size ) { |
||
243 | |||
244 | } |
||
245 |