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

TComplexPropertyType::addToComplexProperty()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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