Code Duplication    Length = 325-325 lines in 2 locations

MetadataV1/src/edm/TEntityTypeType.php 1 location

@@ 11-335 (lines=325) @@
8
 *
9
 * XSD Type: TEntityType
10
 */
11
class TEntityTypeType
12
{
13
14
    /**
15
     * @property string $name
16
     */
17
    private $name = null;
18
19
    /**
20
     * @property string $baseType
21
     */
22
    private $baseType = null;
23
24
    /**
25
     * @property boolean $abstract
26
     */
27
    private $abstract = null;
28
29
    /**
30
     * @property string $typeAccess
31
     */
32
    private $typeAccess = null;
33
34
    /**
35
     * @property \MetadataV1\edm\TDocumentationType $documentation
36
     */
37
    private $documentation = null;
38
39
    /**
40
     * @property \MetadataV1\edm\TPropertyRefType[] $key
41
     */
42
    private $key = null;
43
44
    /**
45
     * @property \MetadataV1\edm\TEntityPropertyType[] $property
46
     */
47
    private $property = array(
48
        
49
    );
50
51
    /**
52
     * @property \MetadataV1\edm\TNavigationPropertyType[] $navigationProperty
53
     */
54
    private $navigationProperty = array(
55
        
56
    );
57
58
    /**
59
     * Gets as name
60
     *
61
     * @return string
62
     */
63
    public function getName()
64
    {
65
        return $this->name;
66
    }
67
68
    /**
69
     * Sets a new name
70
     *
71
     * @param string $name
72
     * @return self
73
     */
74
    public function setName($name)
75
    {
76
        $this->name = $name;
77
        return $this;
78
    }
79
80
    /**
81
     * Gets as baseType
82
     *
83
     * @return string
84
     */
85
    public function getBaseType()
86
    {
87
        return $this->baseType;
88
    }
89
90
    /**
91
     * Sets a new baseType
92
     *
93
     * @param string $baseType
94
     * @return self
95
     */
96
    public function setBaseType($baseType)
97
    {
98
        $this->baseType = $baseType;
99
        return $this;
100
    }
101
102
    /**
103
     * Gets as abstract
104
     *
105
     * @return boolean
106
     */
107
    public function getAbstract()
108
    {
109
        return $this->abstract;
110
    }
111
112
    /**
113
     * Sets a new abstract
114
     *
115
     * @param boolean $abstract
116
     * @return self
117
     */
118
    public function setAbstract($abstract)
119
    {
120
        $this->abstract = $abstract;
121
        return $this;
122
    }
123
124
    /**
125
     * Gets as typeAccess
126
     *
127
     * @return string
128
     */
129
    public function getTypeAccess()
130
    {
131
        return $this->typeAccess;
132
    }
133
134
    /**
135
     * Sets a new typeAccess
136
     *
137
     * @param string $typeAccess
138
     * @return self
139
     */
140
    public function setTypeAccess($typeAccess)
141
    {
142
        $this->typeAccess = $typeAccess;
143
        return $this;
144
    }
145
146
    /**
147
     * Gets as documentation
148
     *
149
     * @return \MetadataV1\edm\TDocumentationType
150
     */
151
    public function getDocumentation()
152
    {
153
        return $this->documentation;
154
    }
155
156
    /**
157
     * Sets a new documentation
158
     *
159
     * @param \MetadataV1\edm\TDocumentationType $documentation
160
     * @return self
161
     */
162
    public function setDocumentation(\MetadataV1\edm\TDocumentationType $documentation)
163
    {
164
        $this->documentation = $documentation;
165
        return $this;
166
    }
167
168
    /**
169
     * Adds as propertyRef
170
     *
171
     * @return self
172
     * @param \MetadataV1\edm\TPropertyRefType $propertyRef
173
     */
174
    public function addToKey(\MetadataV1\edm\TPropertyRefType $propertyRef)
175
    {
176
        $this->key[] = $propertyRef;
177
        return $this;
178
    }
179
180
    /**
181
     * isset key
182
     *
183
     * @param scalar $index
184
     * @return boolean
185
     */
186
    public function issetKey($index)
187
    {
188
        return isset($this->key[$index]);
189
    }
190
191
    /**
192
     * unset key
193
     *
194
     * @param scalar $index
195
     * @return void
196
     */
197
    public function unsetKey($index)
198
    {
199
        unset($this->key[$index]);
200
    }
201
202
    /**
203
     * Gets as key
204
     *
205
     * @return \MetadataV1\edm\TPropertyRefType[]
206
     */
207
    public function getKey()
208
    {
209
        return $this->key;
210
    }
211
212
    /**
213
     * Sets a new key
214
     *
215
     * @param \MetadataV1\edm\TPropertyRefType[] $key
216
     * @return self
217
     */
218
    public function setKey(array $key)
219
    {
220
        $this->key = $key;
221
        return $this;
222
    }
223
224
    /**
225
     * Adds as property
226
     *
227
     * @return self
228
     * @param \MetadataV1\edm\TEntityPropertyType $property
229
     */
230
    public function addToProperty(\MetadataV1\edm\TEntityPropertyType $property)
231
    {
232
        $this->property[] = $property;
233
        return $this;
234
    }
235
236
    /**
237
     * isset property
238
     *
239
     * @param scalar $index
240
     * @return boolean
241
     */
242
    public function issetProperty($index)
243
    {
244
        return isset($this->property[$index]);
245
    }
246
247
    /**
248
     * unset property
249
     *
250
     * @param scalar $index
251
     * @return void
252
     */
253
    public function unsetProperty($index)
254
    {
255
        unset($this->property[$index]);
256
    }
257
258
    /**
259
     * Gets as property
260
     *
261
     * @return \MetadataV1\edm\TEntityPropertyType[]
262
     */
263
    public function getProperty()
264
    {
265
        return $this->property;
266
    }
267
268
    /**
269
     * Sets a new property
270
     *
271
     * @param \MetadataV1\edm\TEntityPropertyType[] $property
272
     * @return self
273
     */
274
    public function setProperty(array $property)
275
    {
276
        $this->property = $property;
277
        return $this;
278
    }
279
280
    /**
281
     * Adds as navigationProperty
282
     *
283
     * @return self
284
     * @param \MetadataV1\edm\TNavigationPropertyType $navigationProperty
285
     */
286
    public function addToNavigationProperty(\MetadataV1\edm\TNavigationPropertyType $navigationProperty)
287
    {
288
        $this->navigationProperty[] = $navigationProperty;
289
        return $this;
290
    }
291
292
    /**
293
     * isset navigationProperty
294
     *
295
     * @param scalar $index
296
     * @return boolean
297
     */
298
    public function issetNavigationProperty($index)
299
    {
300
        return isset($this->navigationProperty[$index]);
301
    }
302
303
    /**
304
     * unset navigationProperty
305
     *
306
     * @param scalar $index
307
     * @return void
308
     */
309
    public function unsetNavigationProperty($index)
310
    {
311
        unset($this->navigationProperty[$index]);
312
    }
313
314
    /**
315
     * Gets as navigationProperty
316
     *
317
     * @return \MetadataV1\edm\TNavigationPropertyType[]
318
     */
319
    public function getNavigationProperty()
320
    {
321
        return $this->navigationProperty;
322
    }
323
324
    /**
325
     * Sets a new navigationProperty
326
     *
327
     * @param \MetadataV1\edm\TNavigationPropertyType[] $navigationProperty
328
     * @return self
329
     */
330
    public function setNavigationProperty(array $navigationProperty)
331
    {
332
        $this->navigationProperty = $navigationProperty;
333
        return $this;
334
    }
335
}
336

MetadataV2/src/edm/TEntityTypeType.php 1 location

@@ 11-335 (lines=325) @@
8
 *
9
 * XSD Type: TEntityType
10
 */
11
class TEntityTypeType
12
{
13
14
    /**
15
     * @property string $name
16
     */
17
    private $name = null;
18
19
    /**
20
     * @property string $baseType
21
     */
22
    private $baseType = null;
23
24
    /**
25
     * @property boolean $abstract
26
     */
27
    private $abstract = null;
28
29
    /**
30
     * @property string $typeAccess
31
     */
32
    private $typeAccess = null;
33
34
    /**
35
     * @property \MetadataV2\edm\TDocumentationType $documentation
36
     */
37
    private $documentation = null;
38
39
    /**
40
     * @property \MetadataV2\edm\TPropertyRefType[] $key
41
     */
42
    private $key = null;
43
44
    /**
45
     * @property \MetadataV2\edm\TEntityPropertyType[] $property
46
     */
47
    private $property = array(
48
        
49
    );
50
51
    /**
52
     * @property \MetadataV2\edm\TNavigationPropertyType[] $navigationProperty
53
     */
54
    private $navigationProperty = array(
55
        
56
    );
57
58
    /**
59
     * Gets as name
60
     *
61
     * @return string
62
     */
63
    public function getName()
64
    {
65
        return $this->name;
66
    }
67
68
    /**
69
     * Sets a new name
70
     *
71
     * @param string $name
72
     * @return self
73
     */
74
    public function setName($name)
75
    {
76
        $this->name = $name;
77
        return $this;
78
    }
79
80
    /**
81
     * Gets as baseType
82
     *
83
     * @return string
84
     */
85
    public function getBaseType()
86
    {
87
        return $this->baseType;
88
    }
89
90
    /**
91
     * Sets a new baseType
92
     *
93
     * @param string $baseType
94
     * @return self
95
     */
96
    public function setBaseType($baseType)
97
    {
98
        $this->baseType = $baseType;
99
        return $this;
100
    }
101
102
    /**
103
     * Gets as abstract
104
     *
105
     * @return boolean
106
     */
107
    public function getAbstract()
108
    {
109
        return $this->abstract;
110
    }
111
112
    /**
113
     * Sets a new abstract
114
     *
115
     * @param boolean $abstract
116
     * @return self
117
     */
118
    public function setAbstract($abstract)
119
    {
120
        $this->abstract = $abstract;
121
        return $this;
122
    }
123
124
    /**
125
     * Gets as typeAccess
126
     *
127
     * @return string
128
     */
129
    public function getTypeAccess()
130
    {
131
        return $this->typeAccess;
132
    }
133
134
    /**
135
     * Sets a new typeAccess
136
     *
137
     * @param string $typeAccess
138
     * @return self
139
     */
140
    public function setTypeAccess($typeAccess)
141
    {
142
        $this->typeAccess = $typeAccess;
143
        return $this;
144
    }
145
146
    /**
147
     * Gets as documentation
148
     *
149
     * @return \MetadataV2\edm\TDocumentationType
150
     */
151
    public function getDocumentation()
152
    {
153
        return $this->documentation;
154
    }
155
156
    /**
157
     * Sets a new documentation
158
     *
159
     * @param \MetadataV2\edm\TDocumentationType $documentation
160
     * @return self
161
     */
162
    public function setDocumentation(\MetadataV2\edm\TDocumentationType $documentation)
163
    {
164
        $this->documentation = $documentation;
165
        return $this;
166
    }
167
168
    /**
169
     * Adds as propertyRef
170
     *
171
     * @return self
172
     * @param \MetadataV2\edm\TPropertyRefType $propertyRef
173
     */
174
    public function addToKey(\MetadataV2\edm\TPropertyRefType $propertyRef)
175
    {
176
        $this->key[] = $propertyRef;
177
        return $this;
178
    }
179
180
    /**
181
     * isset key
182
     *
183
     * @param scalar $index
184
     * @return boolean
185
     */
186
    public function issetKey($index)
187
    {
188
        return isset($this->key[$index]);
189
    }
190
191
    /**
192
     * unset key
193
     *
194
     * @param scalar $index
195
     * @return void
196
     */
197
    public function unsetKey($index)
198
    {
199
        unset($this->key[$index]);
200
    }
201
202
    /**
203
     * Gets as key
204
     *
205
     * @return \MetadataV2\edm\TPropertyRefType[]
206
     */
207
    public function getKey()
208
    {
209
        return $this->key;
210
    }
211
212
    /**
213
     * Sets a new key
214
     *
215
     * @param \MetadataV2\edm\TPropertyRefType[] $key
216
     * @return self
217
     */
218
    public function setKey(array $key)
219
    {
220
        $this->key = $key;
221
        return $this;
222
    }
223
224
    /**
225
     * Adds as property
226
     *
227
     * @return self
228
     * @param \MetadataV2\edm\TEntityPropertyType $property
229
     */
230
    public function addToProperty(\MetadataV2\edm\TEntityPropertyType $property)
231
    {
232
        $this->property[] = $property;
233
        return $this;
234
    }
235
236
    /**
237
     * isset property
238
     *
239
     * @param scalar $index
240
     * @return boolean
241
     */
242
    public function issetProperty($index)
243
    {
244
        return isset($this->property[$index]);
245
    }
246
247
    /**
248
     * unset property
249
     *
250
     * @param scalar $index
251
     * @return void
252
     */
253
    public function unsetProperty($index)
254
    {
255
        unset($this->property[$index]);
256
    }
257
258
    /**
259
     * Gets as property
260
     *
261
     * @return \MetadataV2\edm\TEntityPropertyType[]
262
     */
263
    public function getProperty()
264
    {
265
        return $this->property;
266
    }
267
268
    /**
269
     * Sets a new property
270
     *
271
     * @param \MetadataV2\edm\TEntityPropertyType[] $property
272
     * @return self
273
     */
274
    public function setProperty(array $property)
275
    {
276
        $this->property = $property;
277
        return $this;
278
    }
279
280
    /**
281
     * Adds as navigationProperty
282
     *
283
     * @return self
284
     * @param \MetadataV2\edm\TNavigationPropertyType $navigationProperty
285
     */
286
    public function addToNavigationProperty(\MetadataV2\edm\TNavigationPropertyType $navigationProperty)
287
    {
288
        $this->navigationProperty[] = $navigationProperty;
289
        return $this;
290
    }
291
292
    /**
293
     * isset navigationProperty
294
     *
295
     * @param scalar $index
296
     * @return boolean
297
     */
298
    public function issetNavigationProperty($index)
299
    {
300
        return isset($this->navigationProperty[$index]);
301
    }
302
303
    /**
304
     * unset navigationProperty
305
     *
306
     * @param scalar $index
307
     * @return void
308
     */
309
    public function unsetNavigationProperty($index)
310
    {
311
        unset($this->navigationProperty[$index]);
312
    }
313
314
    /**
315
     * Gets as navigationProperty
316
     *
317
     * @return \MetadataV2\edm\TNavigationPropertyType[]
318
     */
319
    public function getNavigationProperty()
320
    {
321
        return $this->navigationProperty;
322
    }
323
324
    /**
325
     * Sets a new navigationProperty
326
     *
327
     * @param \MetadataV2\edm\TNavigationPropertyType[] $navigationProperty
328
     * @return self
329
     */
330
    public function setNavigationProperty(array $navigationProperty)
331
    {
332
        $this->navigationProperty = $navigationProperty;
333
        return $this;
334
    }
335
}
336