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

TComplexTypeMappingType::setIsPartial()   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\MetadataV1\mapping\cs;
4
5
/**
6
 * Class representing TComplexTypeMappingType
7
 *
8
 *
9
 * XSD Type: TComplexTypeMapping
10
 */
11
class TComplexTypeMappingType
12
{
13
14
    /**
15
     * @property string $typeName
16
     */
17
    private $typeName = null;
18
19
    /**
20
     * @property boolean $isPartial
21
     */
22
    private $isPartial = null;
23
24
    /**
25
     * @property \AlgoWeb\ODataMetadata\MetadataV1\mapping\cs\TScalarPropertyType[] $scalarProperty
26
     */
27
    private $scalarProperty = array(
28
        
29
    );
30
31
    /**
32
     * @property \AlgoWeb\ODataMetadata\MetadataV1\mapping\cs\TComplexPropertyType[] $complexProperty
33
     */
34
    private $complexProperty = array(
35
        
36
    );
37
38
    /**
39
     * @property \AlgoWeb\ODataMetadata\MetadataV1\mapping\cs\TConditionType[] $condition
40
     */
41
    private $condition = array(
42
        
43
    );
44
45
    /**
46
     * Gets as typeName
47
     *
48
     * @return string
49
     */
50
    public function getTypeName()
51
    {
52
        return $this->typeName;
53
    }
54
55
    /**
56
     * Sets a new typeName
57
     *
58
     * @param string $typeName
59
     * @return self
60
     */
61
    public function setTypeName($typeName)
62
    {
63
        $this->typeName = $typeName;
64
        return $this;
65
    }
66
67
    /**
68
     * Gets as isPartial
69
     *
70
     * @return boolean
71
     */
72
    public function getIsPartial()
73
    {
74
        return $this->isPartial;
75
    }
76
77
    /**
78
     * Sets a new isPartial
79
     *
80
     * @param boolean $isPartial
81
     * @return self
82
     */
83
    public function setIsPartial($isPartial)
84
    {
85
        $this->isPartial = $isPartial;
86
        return $this;
87
    }
88
89
    /**
90
     * Adds as scalarProperty
91
     *
92
     * @return self
93
     * @param \AlgoWeb\ODataMetadata\MetadataV1\mapping\cs\TScalarPropertyType $scalarProperty
94
     */
95
    public function addToScalarProperty(TScalarPropertyType $scalarProperty)
96
    {
97
        $this->scalarProperty[] = $scalarProperty;
98
        return $this;
99
    }
100
101
    /**
102
     * isset scalarProperty
103
     *
104
     * @param scalar $index
105
     * @return boolean
106
     */
107
    public function issetScalarProperty($index)
108
    {
109
        return isset($this->scalarProperty[$index]);
110
    }
111
112
    /**
113
     * unset scalarProperty
114
     *
115
     * @param scalar $index
116
     * @return void
117
     */
118
    public function unsetScalarProperty($index)
119
    {
120
        unset($this->scalarProperty[$index]);
121
    }
122
123
    /**
124
     * Gets as scalarProperty
125
     *
126
     * @return \AlgoWeb\ODataMetadata\MetadataV1\mapping\cs\TScalarPropertyType[]
127
     */
128
    public function getScalarProperty()
129
    {
130
        return $this->scalarProperty;
131
    }
132
133
    /**
134
     * Sets a new scalarProperty
135
     *
136
     * @param \AlgoWeb\ODataMetadata\MetadataV1\mapping\cs\TScalarPropertyType[] $scalarProperty
137
     * @return self
138
     */
139
    public function setScalarProperty(array $scalarProperty)
140
    {
141
        $this->scalarProperty = $scalarProperty;
142
        return $this;
143
    }
144
145
    /**
146
     * Adds as complexProperty
147
     *
148
     * @return self
149
     * @param \AlgoWeb\ODataMetadata\MetadataV1\mapping\cs\TComplexPropertyType $complexProperty
150
     */
151
    public function addToComplexProperty(TComplexPropertyType $complexProperty)
152
    {
153
        $this->complexProperty[] = $complexProperty;
154
        return $this;
155
    }
156
157
    /**
158
     * isset complexProperty
159
     *
160
     * @param scalar $index
161
     * @return boolean
162
     */
163
    public function issetComplexProperty($index)
164
    {
165
        return isset($this->complexProperty[$index]);
166
    }
167
168
    /**
169
     * unset complexProperty
170
     *
171
     * @param scalar $index
172
     * @return void
173
     */
174
    public function unsetComplexProperty($index)
175
    {
176
        unset($this->complexProperty[$index]);
177
    }
178
179
    /**
180
     * Gets as complexProperty
181
     *
182
     * @return \AlgoWeb\ODataMetadata\MetadataV1\mapping\cs\TComplexPropertyType[]
183
     */
184
    public function getComplexProperty()
185
    {
186
        return $this->complexProperty;
187
    }
188
189
    /**
190
     * Sets a new complexProperty
191
     *
192
     * @param \AlgoWeb\ODataMetadata\MetadataV1\mapping\cs\TComplexPropertyType[] $complexProperty
193
     * @return self
194
     */
195
    public function setComplexProperty(array $complexProperty)
196
    {
197
        $this->complexProperty = $complexProperty;
198
        return $this;
199
    }
200
201
    /**
202
     * Adds as condition
203
     *
204
     * @return self
205
     * @param \AlgoWeb\ODataMetadata\MetadataV1\mapping\cs\TConditionType $condition
206
     */
207
    public function addToCondition(TConditionType $condition)
208
    {
209
        $this->condition[] = $condition;
210
        return $this;
211
    }
212
213
    /**
214
     * isset condition
215
     *
216
     * @param scalar $index
217
     * @return boolean
218
     */
219
    public function issetCondition($index)
220
    {
221
        return isset($this->condition[$index]);
222
    }
223
224
    /**
225
     * unset condition
226
     *
227
     * @param scalar $index
228
     * @return void
229
     */
230
    public function unsetCondition($index)
231
    {
232
        unset($this->condition[$index]);
233
    }
234
235
    /**
236
     * Gets as condition
237
     *
238
     * @return \AlgoWeb\ODataMetadata\MetadataV1\mapping\cs\TConditionType[]
239
     */
240
    public function getCondition()
241
    {
242
        return $this->condition;
243
    }
244
245
    /**
246
     * Sets a new condition
247
     *
248
     * @param \AlgoWeb\ODataMetadata\MetadataV1\mapping\cs\TConditionType[] $condition
249
     * @return self
250
     */
251
    public function setCondition(array $condition)
252
    {
253
        $this->condition = $condition;
254
        return $this;
255
    }
256
}
257