|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace AlgoWeb\ODataMetadata\MetadataV3\mapping\cs; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* Class representing TEntityContainerMappingType |
|
7
|
|
|
* |
|
8
|
|
|
* |
|
9
|
|
|
* XSD Type: TEntityContainerMapping |
|
10
|
|
|
*/ |
|
11
|
|
View Code Duplication |
class TEntityContainerMappingType |
|
|
|
|
|
|
12
|
|
|
{ |
|
13
|
|
|
|
|
14
|
|
|
/** |
|
15
|
|
|
* @property string $cdmEntityContainer |
|
16
|
|
|
*/ |
|
17
|
|
|
private $cdmEntityContainer = null; |
|
18
|
|
|
|
|
19
|
|
|
/** |
|
20
|
|
|
* @property string $storageEntityContainer |
|
21
|
|
|
*/ |
|
22
|
|
|
private $storageEntityContainer = null; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @property boolean $generateUpdateViews |
|
26
|
|
|
*/ |
|
27
|
|
|
private $generateUpdateViews = null; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* @property \MetadataV3\mapping\cs\TEntitySetMappingType[] $entitySetMapping |
|
31
|
|
|
*/ |
|
32
|
|
|
private $entitySetMapping = array( |
|
33
|
|
|
|
|
34
|
|
|
); |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* @property \MetadataV3\mapping\cs\TAssociationSetMappingType[] |
|
38
|
|
|
* $associationSetMapping |
|
39
|
|
|
*/ |
|
40
|
|
|
private $associationSetMapping = array( |
|
41
|
|
|
|
|
42
|
|
|
); |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* @property \MetadataV3\mapping\cs\TFunctionImportMappingType[] |
|
46
|
|
|
* $functionImportMapping |
|
47
|
|
|
*/ |
|
48
|
|
|
private $functionImportMapping = array( |
|
49
|
|
|
|
|
50
|
|
|
); |
|
51
|
|
|
|
|
52
|
|
|
/** |
|
53
|
|
|
* Gets as cdmEntityContainer |
|
54
|
|
|
* |
|
55
|
|
|
* @return string |
|
56
|
|
|
*/ |
|
57
|
|
|
public function getCdmEntityContainer() |
|
58
|
|
|
{ |
|
59
|
|
|
return $this->cdmEntityContainer; |
|
60
|
|
|
} |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* Sets a new cdmEntityContainer |
|
64
|
|
|
* |
|
65
|
|
|
* @param string $cdmEntityContainer |
|
66
|
|
|
* @return self |
|
67
|
|
|
*/ |
|
68
|
|
|
public function setCdmEntityContainer($cdmEntityContainer) |
|
69
|
|
|
{ |
|
70
|
|
|
$this->cdmEntityContainer = $cdmEntityContainer; |
|
71
|
|
|
return $this; |
|
72
|
|
|
} |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* Gets as storageEntityContainer |
|
76
|
|
|
* |
|
77
|
|
|
* @return string |
|
78
|
|
|
*/ |
|
79
|
|
|
public function getStorageEntityContainer() |
|
80
|
|
|
{ |
|
81
|
|
|
return $this->storageEntityContainer; |
|
82
|
|
|
} |
|
83
|
|
|
|
|
84
|
|
|
/** |
|
85
|
|
|
* Sets a new storageEntityContainer |
|
86
|
|
|
* |
|
87
|
|
|
* @param string $storageEntityContainer |
|
88
|
|
|
* @return self |
|
89
|
|
|
*/ |
|
90
|
|
|
public function setStorageEntityContainer($storageEntityContainer) |
|
91
|
|
|
{ |
|
92
|
|
|
$this->storageEntityContainer = $storageEntityContainer; |
|
93
|
|
|
return $this; |
|
94
|
|
|
} |
|
95
|
|
|
|
|
96
|
|
|
/** |
|
97
|
|
|
* Gets as generateUpdateViews |
|
98
|
|
|
* |
|
99
|
|
|
* @return boolean |
|
100
|
|
|
*/ |
|
101
|
|
|
public function getGenerateUpdateViews() |
|
102
|
|
|
{ |
|
103
|
|
|
return $this->generateUpdateViews; |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* Sets a new generateUpdateViews |
|
108
|
|
|
* |
|
109
|
|
|
* @param boolean $generateUpdateViews |
|
110
|
|
|
* @return self |
|
111
|
|
|
*/ |
|
112
|
|
|
public function setGenerateUpdateViews($generateUpdateViews) |
|
113
|
|
|
{ |
|
114
|
|
|
$this->generateUpdateViews = $generateUpdateViews; |
|
115
|
|
|
return $this; |
|
116
|
|
|
} |
|
117
|
|
|
|
|
118
|
|
|
/** |
|
119
|
|
|
* Adds as entitySetMapping |
|
120
|
|
|
* |
|
121
|
|
|
* @return self |
|
122
|
|
|
* @param \MetadataV3\mapping\cs\TEntitySetMappingType $entitySetMapping |
|
123
|
|
|
*/ |
|
124
|
|
|
public function addToEntitySetMapping(\MetadataV3\mapping\cs\TEntitySetMappingType $entitySetMapping) |
|
125
|
|
|
{ |
|
126
|
|
|
$this->entitySetMapping[] = $entitySetMapping; |
|
127
|
|
|
return $this; |
|
128
|
|
|
} |
|
129
|
|
|
|
|
130
|
|
|
/** |
|
131
|
|
|
* isset entitySetMapping |
|
132
|
|
|
* |
|
133
|
|
|
* @param scalar $index |
|
134
|
|
|
* @return boolean |
|
135
|
|
|
*/ |
|
136
|
|
|
public function issetEntitySetMapping($index) |
|
137
|
|
|
{ |
|
138
|
|
|
return isset($this->entitySetMapping[$index]); |
|
139
|
|
|
} |
|
140
|
|
|
|
|
141
|
|
|
/** |
|
142
|
|
|
* unset entitySetMapping |
|
143
|
|
|
* |
|
144
|
|
|
* @param scalar $index |
|
145
|
|
|
* @return void |
|
146
|
|
|
*/ |
|
147
|
|
|
public function unsetEntitySetMapping($index) |
|
148
|
|
|
{ |
|
149
|
|
|
unset($this->entitySetMapping[$index]); |
|
150
|
|
|
} |
|
151
|
|
|
|
|
152
|
|
|
/** |
|
153
|
|
|
* Gets as entitySetMapping |
|
154
|
|
|
* |
|
155
|
|
|
* @return \MetadataV3\mapping\cs\TEntitySetMappingType[] |
|
156
|
|
|
*/ |
|
157
|
|
|
public function getEntitySetMapping() |
|
158
|
|
|
{ |
|
159
|
|
|
return $this->entitySetMapping; |
|
160
|
|
|
} |
|
161
|
|
|
|
|
162
|
|
|
/** |
|
163
|
|
|
* Sets a new entitySetMapping |
|
164
|
|
|
* |
|
165
|
|
|
* @param \MetadataV3\mapping\cs\TEntitySetMappingType[] $entitySetMapping |
|
166
|
|
|
* @return self |
|
167
|
|
|
*/ |
|
168
|
|
|
public function setEntitySetMapping(array $entitySetMapping) |
|
169
|
|
|
{ |
|
170
|
|
|
$this->entitySetMapping = $entitySetMapping; |
|
171
|
|
|
return $this; |
|
172
|
|
|
} |
|
173
|
|
|
|
|
174
|
|
|
/** |
|
175
|
|
|
* Adds as associationSetMapping |
|
176
|
|
|
* |
|
177
|
|
|
* @return self |
|
178
|
|
|
* @param \MetadataV3\mapping\cs\TAssociationSetMappingType $associationSetMapping |
|
179
|
|
|
*/ |
|
180
|
|
|
public function addToAssociationSetMapping(\MetadataV3\mapping\cs\TAssociationSetMappingType $associationSetMapping) |
|
181
|
|
|
{ |
|
182
|
|
|
$this->associationSetMapping[] = $associationSetMapping; |
|
183
|
|
|
return $this; |
|
184
|
|
|
} |
|
185
|
|
|
|
|
186
|
|
|
/** |
|
187
|
|
|
* isset associationSetMapping |
|
188
|
|
|
* |
|
189
|
|
|
* @param scalar $index |
|
190
|
|
|
* @return boolean |
|
191
|
|
|
*/ |
|
192
|
|
|
public function issetAssociationSetMapping($index) |
|
193
|
|
|
{ |
|
194
|
|
|
return isset($this->associationSetMapping[$index]); |
|
195
|
|
|
} |
|
196
|
|
|
|
|
197
|
|
|
/** |
|
198
|
|
|
* unset associationSetMapping |
|
199
|
|
|
* |
|
200
|
|
|
* @param scalar $index |
|
201
|
|
|
* @return void |
|
202
|
|
|
*/ |
|
203
|
|
|
public function unsetAssociationSetMapping($index) |
|
204
|
|
|
{ |
|
205
|
|
|
unset($this->associationSetMapping[$index]); |
|
206
|
|
|
} |
|
207
|
|
|
|
|
208
|
|
|
/** |
|
209
|
|
|
* Gets as associationSetMapping |
|
210
|
|
|
* |
|
211
|
|
|
* @return \MetadataV3\mapping\cs\TAssociationSetMappingType[] |
|
212
|
|
|
*/ |
|
213
|
|
|
public function getAssociationSetMapping() |
|
214
|
|
|
{ |
|
215
|
|
|
return $this->associationSetMapping; |
|
216
|
|
|
} |
|
217
|
|
|
|
|
218
|
|
|
/** |
|
219
|
|
|
* Sets a new associationSetMapping |
|
220
|
|
|
* |
|
221
|
|
|
* @param \MetadataV3\mapping\cs\TAssociationSetMappingType[] |
|
222
|
|
|
* $associationSetMapping |
|
223
|
|
|
* @return self |
|
224
|
|
|
*/ |
|
225
|
|
|
public function setAssociationSetMapping(array $associationSetMapping) |
|
226
|
|
|
{ |
|
227
|
|
|
$this->associationSetMapping = $associationSetMapping; |
|
228
|
|
|
return $this; |
|
229
|
|
|
} |
|
230
|
|
|
|
|
231
|
|
|
/** |
|
232
|
|
|
* Adds as functionImportMapping |
|
233
|
|
|
* |
|
234
|
|
|
* @return self |
|
235
|
|
|
* @param \MetadataV3\mapping\cs\TFunctionImportMappingType $functionImportMapping |
|
236
|
|
|
*/ |
|
237
|
|
|
public function addToFunctionImportMapping(\MetadataV3\mapping\cs\TFunctionImportMappingType $functionImportMapping) |
|
238
|
|
|
{ |
|
239
|
|
|
$this->functionImportMapping[] = $functionImportMapping; |
|
240
|
|
|
return $this; |
|
241
|
|
|
} |
|
242
|
|
|
|
|
243
|
|
|
/** |
|
244
|
|
|
* isset functionImportMapping |
|
245
|
|
|
* |
|
246
|
|
|
* @param scalar $index |
|
247
|
|
|
* @return boolean |
|
248
|
|
|
*/ |
|
249
|
|
|
public function issetFunctionImportMapping($index) |
|
250
|
|
|
{ |
|
251
|
|
|
return isset($this->functionImportMapping[$index]); |
|
252
|
|
|
} |
|
253
|
|
|
|
|
254
|
|
|
/** |
|
255
|
|
|
* unset functionImportMapping |
|
256
|
|
|
* |
|
257
|
|
|
* @param scalar $index |
|
258
|
|
|
* @return void |
|
259
|
|
|
*/ |
|
260
|
|
|
public function unsetFunctionImportMapping($index) |
|
261
|
|
|
{ |
|
262
|
|
|
unset($this->functionImportMapping[$index]); |
|
263
|
|
|
} |
|
264
|
|
|
|
|
265
|
|
|
/** |
|
266
|
|
|
* Gets as functionImportMapping |
|
267
|
|
|
* |
|
268
|
|
|
* @return \MetadataV3\mapping\cs\TFunctionImportMappingType[] |
|
269
|
|
|
*/ |
|
270
|
|
|
public function getFunctionImportMapping() |
|
271
|
|
|
{ |
|
272
|
|
|
return $this->functionImportMapping; |
|
273
|
|
|
} |
|
274
|
|
|
|
|
275
|
|
|
/** |
|
276
|
|
|
* Sets a new functionImportMapping |
|
277
|
|
|
* |
|
278
|
|
|
* @param \MetadataV3\mapping\cs\TFunctionImportMappingType[] |
|
279
|
|
|
* $functionImportMapping |
|
280
|
|
|
* @return self |
|
281
|
|
|
*/ |
|
282
|
|
|
public function setFunctionImportMapping(array $functionImportMapping) |
|
283
|
|
|
{ |
|
284
|
|
|
$this->functionImportMapping = $functionImportMapping; |
|
285
|
|
|
return $this; |
|
286
|
|
|
} |
|
287
|
|
|
} |
|
288
|
|
|
|
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.