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

TDiagramType::setName()   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\edmx;
4
5
/**
6
 * Class representing TDiagramType
7
 *
8
 *
9
 * XSD Type: TDiagram
10
 */
11
class TDiagramType
12
{
13
14
    /**
15
     * @property string $name
16
     */
17
    private $name = null;
18
19
    /**
20
     * @property string $diagramId
21
     */
22
    private $diagramId = null;
23
24
    /**
25
     * @property integer $zoomLevel
26
     */
27
    private $zoomLevel = null;
28
29
    /**
30
     * @property boolean $showGrid
31
     */
32
    private $showGrid = null;
33
34
    /**
35
     * @property boolean $snapToGrid
36
     */
37
    private $snapToGrid = null;
38
39
    /**
40
     * @property boolean $displayType
41
     */
42
    private $displayType = null;
43
44
    /**
45
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edmx\TEntityTypeShapeType[] $entityTypeShape
46
     */
47
    private $entityTypeShape = array(
48
        
49
    );
50
51
    /**
52
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edmx\TAssociationConnectorType[] $associationConnector
53
     */
54
    private $associationConnector = array(
55
        
56
    );
57
58
    /**
59
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edmx\TInheritanceConnectorType[] $inheritanceConnector
60
     */
61
    private $inheritanceConnector = array(
62
        
63
    );
64
65
    /**
66
     * Gets as name
67
     *
68
     * @return string
69
     */
70
    public function getName()
71
    {
72
        return $this->name;
73
    }
74
75
    /**
76
     * Sets a new name
77
     *
78
     * @param string $name
79
     * @return self
80
     */
81
    public function setName($name)
82
    {
83
        $this->name = $name;
84
        return $this;
85
    }
86
87
    /**
88
     * Gets as diagramId
89
     *
90
     * @return string
91
     */
92
    public function getDiagramId()
93
    {
94
        return $this->diagramId;
95
    }
96
97
    /**
98
     * Sets a new diagramId
99
     *
100
     * @param string $diagramId
101
     * @return self
102
     */
103
    public function setDiagramId($diagramId)
104
    {
105
        $this->diagramId = $diagramId;
106
        return $this;
107
    }
108
109
    /**
110
     * Gets as zoomLevel
111
     *
112
     * @return integer
113
     */
114
    public function getZoomLevel()
115
    {
116
        return $this->zoomLevel;
117
    }
118
119
    /**
120
     * Sets a new zoomLevel
121
     *
122
     * @param integer $zoomLevel
123
     * @return self
124
     */
125
    public function setZoomLevel($zoomLevel)
126
    {
127
        $this->zoomLevel = $zoomLevel;
128
        return $this;
129
    }
130
131
    /**
132
     * Gets as showGrid
133
     *
134
     * @return boolean
135
     */
136
    public function getShowGrid()
137
    {
138
        return $this->showGrid;
139
    }
140
141
    /**
142
     * Sets a new showGrid
143
     *
144
     * @param boolean $showGrid
145
     * @return self
146
     */
147
    public function setShowGrid($showGrid)
148
    {
149
        $this->showGrid = $showGrid;
150
        return $this;
151
    }
152
153
    /**
154
     * Gets as snapToGrid
155
     *
156
     * @return boolean
157
     */
158
    public function getSnapToGrid()
159
    {
160
        return $this->snapToGrid;
161
    }
162
163
    /**
164
     * Sets a new snapToGrid
165
     *
166
     * @param boolean $snapToGrid
167
     * @return self
168
     */
169
    public function setSnapToGrid($snapToGrid)
170
    {
171
        $this->snapToGrid = $snapToGrid;
172
        return $this;
173
    }
174
175
    /**
176
     * Gets as displayType
177
     *
178
     * @return boolean
179
     */
180
    public function getDisplayType()
181
    {
182
        return $this->displayType;
183
    }
184
185
    /**
186
     * Sets a new displayType
187
     *
188
     * @param boolean $displayType
189
     * @return self
190
     */
191
    public function setDisplayType($displayType)
192
    {
193
        $this->displayType = $displayType;
194
        return $this;
195
    }
196
197
    /**
198
     * Adds as entityTypeShape
199
     *
200
     * @return self
201
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edmx\TEntityTypeShapeType $entityTypeShape
202
     */
203
    public function addToEntityTypeShape(TEntityTypeShapeType $entityTypeShape)
204
    {
205
        $this->entityTypeShape[] = $entityTypeShape;
206
        return $this;
207
    }
208
209
    /**
210
     * isset entityTypeShape
211
     *
212
     * @param scalar $index
213
     * @return boolean
214
     */
215
    public function issetEntityTypeShape($index)
216
    {
217
        return isset($this->entityTypeShape[$index]);
218
    }
219
220
    /**
221
     * unset entityTypeShape
222
     *
223
     * @param scalar $index
224
     * @return void
225
     */
226
    public function unsetEntityTypeShape($index)
227
    {
228
        unset($this->entityTypeShape[$index]);
229
    }
230
231
    /**
232
     * Gets as entityTypeShape
233
     *
234
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edmx\TEntityTypeShapeType[]
235
     */
236
    public function getEntityTypeShape()
237
    {
238
        return $this->entityTypeShape;
239
    }
240
241
    /**
242
     * Sets a new entityTypeShape
243
     *
244
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edmx\TEntityTypeShapeType[] $entityTypeShape
245
     * @return self
246
     */
247
    public function setEntityTypeShape(array $entityTypeShape)
248
    {
249
        $this->entityTypeShape = $entityTypeShape;
250
        return $this;
251
    }
252
253
    /**
254
     * Adds as associationConnector
255
     *
256
     * @return self
257
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edmx\TAssociationConnectorType $associationConnector
258
     */
259
    public function addToAssociationConnector(TAssociationConnectorType $associationConnector)
260
    {
261
        $this->associationConnector[] = $associationConnector;
262
        return $this;
263
    }
264
265
    /**
266
     * isset associationConnector
267
     *
268
     * @param scalar $index
269
     * @return boolean
270
     */
271
    public function issetAssociationConnector($index)
272
    {
273
        return isset($this->associationConnector[$index]);
274
    }
275
276
    /**
277
     * unset associationConnector
278
     *
279
     * @param scalar $index
280
     * @return void
281
     */
282
    public function unsetAssociationConnector($index)
283
    {
284
        unset($this->associationConnector[$index]);
285
    }
286
287
    /**
288
     * Gets as associationConnector
289
     *
290
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edmx\TAssociationConnectorType[]
291
     */
292
    public function getAssociationConnector()
293
    {
294
        return $this->associationConnector;
295
    }
296
297
    /**
298
     * Sets a new associationConnector
299
     *
300
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edmx\TAssociationConnectorType[] $associationConnector
301
     * @return self
302
     */
303
    public function setAssociationConnector(array $associationConnector)
304
    {
305
        $this->associationConnector = $associationConnector;
306
        return $this;
307
    }
308
309
    /**
310
     * Adds as inheritanceConnector
311
     *
312
     * @return self
313
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edmx\TInheritanceConnectorType $inheritanceConnector
314
     */
315
    public function addToInheritanceConnector(TInheritanceConnectorType $inheritanceConnector)
316
    {
317
        $this->inheritanceConnector[] = $inheritanceConnector;
318
        return $this;
319
    }
320
321
    /**
322
     * isset inheritanceConnector
323
     *
324
     * @param scalar $index
325
     * @return boolean
326
     */
327
    public function issetInheritanceConnector($index)
328
    {
329
        return isset($this->inheritanceConnector[$index]);
330
    }
331
332
    /**
333
     * unset inheritanceConnector
334
     *
335
     * @param scalar $index
336
     * @return void
337
     */
338
    public function unsetInheritanceConnector($index)
339
    {
340
        unset($this->inheritanceConnector[$index]);
341
    }
342
343
    /**
344
     * Gets as inheritanceConnector
345
     *
346
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edmx\TInheritanceConnectorType[]
347
     */
348
    public function getInheritanceConnector()
349
    {
350
        return $this->inheritanceConnector;
351
    }
352
353
    /**
354
     * Sets a new inheritanceConnector
355
     *
356
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edmx\TInheritanceConnectorType[] $inheritanceConnector
357
     * @return self
358
     */
359
    public function setInheritanceConnector(array $inheritanceConnector)
360
    {
361
        $this->inheritanceConnector = $inheritanceConnector;
362
        return $this;
363
    }
364
}
365