Passed
Push — master ( c03365...9d1091 )
by Alex
07:25
created

EntityContainer::unsetFunctionImport()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\edm;
4
5
use AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType;
6
use AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\EntitySetAnonymousType;
7
use AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\FunctionImportAnonymousType;
8
9
/**
10
 * Class representing EntityContainer
11
 */
12
class EntityContainer
13
{
14
15
    /**
16
     * @property string $name
17
     */
18
    private $name = null;
19
20
    /**
21
     * @property string $extends
22
     */
23
    private $extends = null;
24
25
    /**
26
     * @property string $typeAccess
27
     */
28
    private $typeAccess = null;
29
30
    /**
31
     * @property boolean $lazyLoadingEnabled
32
     */
33
    private $lazyLoadingEnabled = null;
34
35
    /**
36
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
37
     */
38
    private $documentation = null;
39
40
    /**
41
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\FunctionImportAnonymousType[]
42
     * $functionImport
43
     */
44
    private $functionImport = array(
45
        
46
    );
47
48
    /**
49
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\EntitySetAnonymousType[] $entitySet
50
     */
51
    private $entitySet = array(
52
        
53
    );
54
55
    /**
56
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType[]
57
     * $associationSet
58
     */
59
    private $associationSet = array(
60
        
61
    );
62
63
    /**
64
     * Gets as name
65
     *
66
     * @return string
67
     */
68
    public function getName()
69
    {
70
        return $this->name;
71
    }
72
73
    /**
74
     * Sets a new name
75
     *
76
     * @param string $name
77
     * @return self
78
     */
79
    public function setName($name)
80
    {
81
        $this->name = $name;
82
        return $this;
83
    }
84
85
    /**
86
     * Gets as extends
87
     *
88
     * @return string
89
     */
90
    public function getExtends()
91
    {
92
        return $this->extends;
93
    }
94
95
    /**
96
     * Sets a new extends
97
     *
98
     * @param string $extends
99
     * @return self
100
     */
101
    public function setExtends($extends)
102
    {
103
        $this->extends = $extends;
104
        return $this;
105
    }
106
107
    /**
108
     * Gets as typeAccess
109
     *
110
     * @return string
111
     */
112
    public function getTypeAccess()
113
    {
114
        return $this->typeAccess;
115
    }
116
117
    /**
118
     * Sets a new typeAccess
119
     *
120
     * @param string $typeAccess
121
     * @return self
122
     */
123
    public function setTypeAccess($typeAccess)
124
    {
125
        $this->typeAccess = $typeAccess;
126
        return $this;
127
    }
128
129
    /**
130
     * Gets as lazyLoadingEnabled
131
     *
132
     * @return boolean
133
     */
134
    public function getLazyLoadingEnabled()
135
    {
136
        return $this->lazyLoadingEnabled;
137
    }
138
139
    /**
140
     * Sets a new lazyLoadingEnabled
141
     *
142
     * @param boolean $lazyLoadingEnabled
143
     * @return self
144
     */
145
    public function setLazyLoadingEnabled($lazyLoadingEnabled)
146
    {
147
        $this->lazyLoadingEnabled = $lazyLoadingEnabled;
148
        return $this;
149
    }
150
151
    /**
152
     * Gets as documentation
153
     *
154
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType
155
     */
156
    public function getDocumentation()
157
    {
158
        return $this->documentation;
159
    }
160
161
    /**
162
     * Sets a new documentation
163
     *
164
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
165
     * @return self
166
     */
167
    public function setDocumentation(TDocumentationType $documentation)
168
    {
169
        $this->documentation = $documentation;
170
        return $this;
171
    }
172
173
    /**
174
     * Adds as functionImport
175
     *
176
     * @return self
177
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\FunctionImportAnonymousType
178
     * $functionImport
179
     */
180
    public function addToFunctionImport(FunctionImportAnonymousType $functionImport)
181
    {
182
        $this->functionImport[] = $functionImport;
183
        return $this;
184
    }
185
186
    /**
187
     * isset functionImport
188
     *
189
     * @param scalar $index
190
     * @return boolean
191
     */
192
    public function issetFunctionImport($index)
193
    {
194
        return isset($this->functionImport[$index]);
195
    }
196
197
    /**
198
     * unset functionImport
199
     *
200
     * @param scalar $index
201
     * @return void
202
     */
203
    public function unsetFunctionImport($index)
204
    {
205
        unset($this->functionImport[$index]);
206
    }
207
208
    /**
209
     * Gets as functionImport
210
     *
211
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\FunctionImportAnonymousType[]
212
     */
213
    public function getFunctionImport()
214
    {
215
        return $this->functionImport;
216
    }
217
218
    /**
219
     * Sets a new functionImport
220
     *
221
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\FunctionImportAnonymousType[]
222
     * $functionImport
223
     * @return self
224
     */
225
    public function setFunctionImport(array $functionImport)
226
    {
227
        $this->functionImport = $functionImport;
228
        return $this;
229
    }
230
231
    /**
232
     * Adds as entitySet
233
     *
234
     * @return self
235
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\EntitySetAnonymousType $entitySet
236
     */
237
    public function addToEntitySet(EntitySetAnonymousType $entitySet)
238
    {
239
        $this->entitySet[] = $entitySet;
240
        return $this;
241
    }
242
243
    /**
244
     * isset entitySet
245
     *
246
     * @param scalar $index
247
     * @return boolean
248
     */
249
    public function issetEntitySet($index)
250
    {
251
        return isset($this->entitySet[$index]);
252
    }
253
254
    /**
255
     * unset entitySet
256
     *
257
     * @param scalar $index
258
     * @return void
259
     */
260
    public function unsetEntitySet($index)
261
    {
262
        unset($this->entitySet[$index]);
263
    }
264
265
    /**
266
     * Gets as entitySet
267
     *
268
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\EntitySetAnonymousType[]
269
     */
270
    public function getEntitySet()
271
    {
272
        return $this->entitySet;
273
    }
274
275
    /**
276
     * Sets a new entitySet
277
     *
278
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\EntitySetAnonymousType[] $entitySet
279
     * @return self
280
     */
281
    public function setEntitySet(array $entitySet)
282
    {
283
        $this->entitySet = $entitySet;
284
        return $this;
285
    }
286
287
    /**
288
     * Adds as associationSet
289
     *
290
     * @return self
291
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType
292
     * $associationSet
293
     */
294
    public function addToAssociationSet(AssociationSetAnonymousType $associationSet)
295
    {
296
        $this->associationSet[] = $associationSet;
297
        return $this;
298
    }
299
300
    /**
301
     * isset associationSet
302
     *
303
     * @param scalar $index
304
     * @return boolean
305
     */
306
    public function issetAssociationSet($index)
307
    {
308
        return isset($this->associationSet[$index]);
309
    }
310
311
    /**
312
     * unset associationSet
313
     *
314
     * @param scalar $index
315
     * @return void
316
     */
317
    public function unsetAssociationSet($index)
318
    {
319
        unset($this->associationSet[$index]);
320
    }
321
322
    /**
323
     * Gets as associationSet
324
     *
325
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType[]
326
     */
327
    public function getAssociationSet()
328
    {
329
        return $this->associationSet;
330
    }
331
332
    /**
333
     * Sets a new associationSet
334
     *
335
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType[]
336
     * $associationSet
337
     * @return self
338
     */
339
    public function setAssociationSet(array $associationSet)
340
    {
341
        $this->associationSet = $associationSet;
342
        return $this;
343
    }
344
}
345