forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathColumnDefinition.php
More file actions
620 lines (581 loc) · 15.8 KB
/
Copy pathColumnDefinition.php
File metadata and controls
620 lines (581 loc) · 15.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ColumnDefinition File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright © Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @version GIT: 1.4.0
* @link https://graph.microsoft.io/
*/
namespace Microsoft\Graph\Model;
/**
* ColumnDefinition class
*
* @category Model
* @package Microsoft.Graph
* @copyright © Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @version Release: 1.4.0
* @link https://graph.microsoft.io/
*/
class ColumnDefinition extends Entity
{
/**
* Gets the boolean
* This column stores boolean values.
*
* @return BooleanColumn The boolean
*/
public function getBoolean()
{
if (array_key_exists("boolean", $this->_propDict)) {
if (is_a($this->_propDict["boolean"], "Microsoft\Graph\Model\BooleanColumn")) {
return $this->_propDict["boolean"];
} else {
$this->_propDict["boolean"] = new BooleanColumn($this->_propDict["boolean"]);
return $this->_propDict["boolean"];
}
}
return null;
}
/**
* Sets the boolean
* This column stores boolean values.
*
* @param BooleanColumn $val The boolean
*
* @return ColumnDefinition
*/
public function setBoolean($val)
{
$this->_propDict["boolean"] = $val;
return $this;
}
/**
* Gets the calculated
* This column's data is calculated based on other columns.
*
* @return CalculatedColumn The calculated
*/
public function getCalculated()
{
if (array_key_exists("calculated", $this->_propDict)) {
if (is_a($this->_propDict["calculated"], "Microsoft\Graph\Model\CalculatedColumn")) {
return $this->_propDict["calculated"];
} else {
$this->_propDict["calculated"] = new CalculatedColumn($this->_propDict["calculated"]);
return $this->_propDict["calculated"];
}
}
return null;
}
/**
* Sets the calculated
* This column's data is calculated based on other columns.
*
* @param CalculatedColumn $val The calculated
*
* @return ColumnDefinition
*/
public function setCalculated($val)
{
$this->_propDict["calculated"] = $val;
return $this;
}
/**
* Gets the choice
* This column stores data from a list of choices.
*
* @return ChoiceColumn The choice
*/
public function getChoice()
{
if (array_key_exists("choice", $this->_propDict)) {
if (is_a($this->_propDict["choice"], "Microsoft\Graph\Model\ChoiceColumn")) {
return $this->_propDict["choice"];
} else {
$this->_propDict["choice"] = new ChoiceColumn($this->_propDict["choice"]);
return $this->_propDict["choice"];
}
}
return null;
}
/**
* Sets the choice
* This column stores data from a list of choices.
*
* @param ChoiceColumn $val The choice
*
* @return ColumnDefinition
*/
public function setChoice($val)
{
$this->_propDict["choice"] = $val;
return $this;
}
/**
* Gets the columnGroup
* For site columns, the name of the group this column belongs to. Helps organize related columns.
*
* @return string The columnGroup
*/
public function getColumnGroup()
{
if (array_key_exists("columnGroup", $this->_propDict)) {
return $this->_propDict["columnGroup"];
} else {
return null;
}
}
/**
* Sets the columnGroup
* For site columns, the name of the group this column belongs to. Helps organize related columns.
*
* @param string $val The columnGroup
*
* @return ColumnDefinition
*/
public function setColumnGroup($val)
{
$this->_propDict["columnGroup"] = $val;
return $this;
}
/**
* Gets the currency
* This column stores currency values.
*
* @return CurrencyColumn The currency
*/
public function getCurrency()
{
if (array_key_exists("currency", $this->_propDict)) {
if (is_a($this->_propDict["currency"], "Microsoft\Graph\Model\CurrencyColumn")) {
return $this->_propDict["currency"];
} else {
$this->_propDict["currency"] = new CurrencyColumn($this->_propDict["currency"]);
return $this->_propDict["currency"];
}
}
return null;
}
/**
* Sets the currency
* This column stores currency values.
*
* @param CurrencyColumn $val The currency
*
* @return ColumnDefinition
*/
public function setCurrency($val)
{
$this->_propDict["currency"] = $val;
return $this;
}
/**
* Gets the dateTime
* This column stores DateTime values.
*
* @return DateTimeColumn The dateTime
*/
public function getDateTime()
{
if (array_key_exists("dateTime", $this->_propDict)) {
if (is_a($this->_propDict["dateTime"], "Microsoft\Graph\Model\DateTimeColumn")) {
return $this->_propDict["dateTime"];
} else {
$this->_propDict["dateTime"] = new DateTimeColumn($this->_propDict["dateTime"]);
return $this->_propDict["dateTime"];
}
}
return null;
}
/**
* Sets the dateTime
* This column stores DateTime values.
*
* @param DateTimeColumn $val The dateTime
*
* @return ColumnDefinition
*/
public function setDateTime($val)
{
$this->_propDict["dateTime"] = $val;
return $this;
}
/**
* Gets the defaultValue
* The default value for this column.
*
* @return DefaultColumnValue The defaultValue
*/
public function getDefaultValue()
{
if (array_key_exists("defaultValue", $this->_propDict)) {
if (is_a($this->_propDict["defaultValue"], "Microsoft\Graph\Model\DefaultColumnValue")) {
return $this->_propDict["defaultValue"];
} else {
$this->_propDict["defaultValue"] = new DefaultColumnValue($this->_propDict["defaultValue"]);
return $this->_propDict["defaultValue"];
}
}
return null;
}
/**
* Sets the defaultValue
* The default value for this column.
*
* @param DefaultColumnValue $val The defaultValue
*
* @return ColumnDefinition
*/
public function setDefaultValue($val)
{
$this->_propDict["defaultValue"] = $val;
return $this;
}
/**
* Gets the description
* The user-facing description of the column.
*
* @return string The description
*/
public function getDescription()
{
if (array_key_exists("description", $this->_propDict)) {
return $this->_propDict["description"];
} else {
return null;
}
}
/**
* Sets the description
* The user-facing description of the column.
*
* @param string $val The description
*
* @return ColumnDefinition
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the displayName
* The user-facing name of the column.
*
* @return string The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
* The user-facing name of the column.
*
* @param string $val The displayName
*
* @return ColumnDefinition
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the enforceUniqueValues
* If true, no two list items may have the same value for this column.
*
* @return bool The enforceUniqueValues
*/
public function getEnforceUniqueValues()
{
if (array_key_exists("enforceUniqueValues", $this->_propDict)) {
return $this->_propDict["enforceUniqueValues"];
} else {
return null;
}
}
/**
* Sets the enforceUniqueValues
* If true, no two list items may have the same value for this column.
*
* @param bool $val The enforceUniqueValues
*
* @return ColumnDefinition
*/
public function setEnforceUniqueValues($val)
{
$this->_propDict["enforceUniqueValues"] = boolval($val);
return $this;
}
/**
* Gets the hidden
* Specifies whether the column is displayed in the user interface.
*
* @return bool The hidden
*/
public function getHidden()
{
if (array_key_exists("hidden", $this->_propDict)) {
return $this->_propDict["hidden"];
} else {
return null;
}
}
/**
* Sets the hidden
* Specifies whether the column is displayed in the user interface.
*
* @param bool $val The hidden
*
* @return ColumnDefinition
*/
public function setHidden($val)
{
$this->_propDict["hidden"] = boolval($val);
return $this;
}
/**
* Gets the indexed
* Specifies whether the column values can used for sorting and searching.
*
* @return bool The indexed
*/
public function getIndexed()
{
if (array_key_exists("indexed", $this->_propDict)) {
return $this->_propDict["indexed"];
} else {
return null;
}
}
/**
* Sets the indexed
* Specifies whether the column values can used for sorting and searching.
*
* @param bool $val The indexed
*
* @return ColumnDefinition
*/
public function setIndexed($val)
{
$this->_propDict["indexed"] = boolval($val);
return $this;
}
/**
* Gets the lookup
* This column's data is looked up from another source in the site.
*
* @return LookupColumn The lookup
*/
public function getLookup()
{
if (array_key_exists("lookup", $this->_propDict)) {
if (is_a($this->_propDict["lookup"], "Microsoft\Graph\Model\LookupColumn")) {
return $this->_propDict["lookup"];
} else {
$this->_propDict["lookup"] = new LookupColumn($this->_propDict["lookup"]);
return $this->_propDict["lookup"];
}
}
return null;
}
/**
* Sets the lookup
* This column's data is looked up from another source in the site.
*
* @param LookupColumn $val The lookup
*
* @return ColumnDefinition
*/
public function setLookup($val)
{
$this->_propDict["lookup"] = $val;
return $this;
}
/**
* Gets the name
* The API-facing name of the column as it appears in the [fields][] on a [listItem][]. For the user-facing name, see displayName.
*
* @return string The name
*/
public function getName()
{
if (array_key_exists("name", $this->_propDict)) {
return $this->_propDict["name"];
} else {
return null;
}
}
/**
* Sets the name
* The API-facing name of the column as it appears in the [fields][] on a [listItem][]. For the user-facing name, see displayName.
*
* @param string $val The name
*
* @return ColumnDefinition
*/
public function setName($val)
{
$this->_propDict["name"] = $val;
return $this;
}
/**
* Gets the number
* This column stores number values.
*
* @return NumberColumn The number
*/
public function getNumber()
{
if (array_key_exists("number", $this->_propDict)) {
if (is_a($this->_propDict["number"], "Microsoft\Graph\Model\NumberColumn")) {
return $this->_propDict["number"];
} else {
$this->_propDict["number"] = new NumberColumn($this->_propDict["number"]);
return $this->_propDict["number"];
}
}
return null;
}
/**
* Sets the number
* This column stores number values.
*
* @param NumberColumn $val The number
*
* @return ColumnDefinition
*/
public function setNumber($val)
{
$this->_propDict["number"] = $val;
return $this;
}
/**
* Gets the personOrGroup
* This column stores Person or Group values.
*
* @return PersonOrGroupColumn The personOrGroup
*/
public function getPersonOrGroup()
{
if (array_key_exists("personOrGroup", $this->_propDict)) {
if (is_a($this->_propDict["personOrGroup"], "Microsoft\Graph\Model\PersonOrGroupColumn")) {
return $this->_propDict["personOrGroup"];
} else {
$this->_propDict["personOrGroup"] = new PersonOrGroupColumn($this->_propDict["personOrGroup"]);
return $this->_propDict["personOrGroup"];
}
}
return null;
}
/**
* Sets the personOrGroup
* This column stores Person or Group values.
*
* @param PersonOrGroupColumn $val The personOrGroup
*
* @return ColumnDefinition
*/
public function setPersonOrGroup($val)
{
$this->_propDict["personOrGroup"] = $val;
return $this;
}
/**
* Gets the readOnly
* Specifies whether the column values can be modified.
*
* @return bool The readOnly
*/
public function getReadOnly()
{
if (array_key_exists("readOnly", $this->_propDict)) {
return $this->_propDict["readOnly"];
} else {
return null;
}
}
/**
* Sets the readOnly
* Specifies whether the column values can be modified.
*
* @param bool $val The readOnly
*
* @return ColumnDefinition
*/
public function setReadOnly($val)
{
$this->_propDict["readOnly"] = boolval($val);
return $this;
}
/**
* Gets the required
* Specifies whether the column value is not optional.
*
* @return bool The required
*/
public function getRequired()
{
if (array_key_exists("required", $this->_propDict)) {
return $this->_propDict["required"];
} else {
return null;
}
}
/**
* Sets the required
* Specifies whether the column value is not optional.
*
* @param bool $val The required
*
* @return ColumnDefinition
*/
public function setRequired($val)
{
$this->_propDict["required"] = boolval($val);
return $this;
}
/**
* Gets the text
* This column stores text values.
*
* @return TextColumn The text
*/
public function getText()
{
if (array_key_exists("text", $this->_propDict)) {
if (is_a($this->_propDict["text"], "Microsoft\Graph\Model\TextColumn")) {
return $this->_propDict["text"];
} else {
$this->_propDict["text"] = new TextColumn($this->_propDict["text"]);
return $this->_propDict["text"];
}
}
return null;
}
/**
* Sets the text
* This column stores text values.
*
* @param TextColumn $val The text
*
* @return ColumnDefinition
*/
public function setText($val)
{
$this->_propDict["text"] = $val;
return $this;
}
}