forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessPackageQuestion.php
More file actions
173 lines (161 loc) · 4.38 KB
/
Copy pathAccessPackageQuestion.php
File metadata and controls
173 lines (161 loc) · 4.38 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
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AccessPackageQuestion File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\Model;
/**
* AccessPackageQuestion class
*
* @category Model
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class AccessPackageQuestion extends Entity
{
/**
* Gets the isAnswerEditable
* Specifies whether the requestor is allowed to edit answers to questions for an assignment by posting an update to accessPackageAssignmentRequest.
*
* @return bool|null The isAnswerEditable
*/
public function getIsAnswerEditable()
{
if (array_key_exists("isAnswerEditable", $this->_propDict)) {
return $this->_propDict["isAnswerEditable"];
} else {
return null;
}
}
/**
* Sets the isAnswerEditable
* Specifies whether the requestor is allowed to edit answers to questions for an assignment by posting an update to accessPackageAssignmentRequest.
*
* @param bool $val The isAnswerEditable
*
* @return AccessPackageQuestion
*/
public function setIsAnswerEditable($val)
{
$this->_propDict["isAnswerEditable"] = boolval($val);
return $this;
}
/**
* Gets the isRequired
* Whether the requestor is required to supply an answer or not.
*
* @return bool|null The isRequired
*/
public function getIsRequired()
{
if (array_key_exists("isRequired", $this->_propDict)) {
return $this->_propDict["isRequired"];
} else {
return null;
}
}
/**
* Sets the isRequired
* Whether the requestor is required to supply an answer or not.
*
* @param bool $val The isRequired
*
* @return AccessPackageQuestion
*/
public function setIsRequired($val)
{
$this->_propDict["isRequired"] = boolval($val);
return $this;
}
/**
* Gets the localizations
* The text of the question represented in a format for a specific locale.
*
* @return array|null The localizations
*/
public function getLocalizations()
{
if (array_key_exists("localizations", $this->_propDict)) {
return $this->_propDict["localizations"];
} else {
return null;
}
}
/**
* Sets the localizations
* The text of the question represented in a format for a specific locale.
*
* @param AccessPackageLocalizedText[] $val The localizations
*
* @return AccessPackageQuestion
*/
public function setLocalizations($val)
{
$this->_propDict["localizations"] = $val;
return $this;
}
/**
* Gets the sequence
* Relative position of this question when displaying a list of questions to the requestor.
*
* @return int|null The sequence
*/
public function getSequence()
{
if (array_key_exists("sequence", $this->_propDict)) {
return $this->_propDict["sequence"];
} else {
return null;
}
}
/**
* Sets the sequence
* Relative position of this question when displaying a list of questions to the requestor.
*
* @param int $val The sequence
*
* @return AccessPackageQuestion
*/
public function setSequence($val)
{
$this->_propDict["sequence"] = intval($val);
return $this;
}
/**
* Gets the text
* The text of the question to show to the requestor.
*
* @return string|null The text
*/
public function getText()
{
if (array_key_exists("text", $this->_propDict)) {
return $this->_propDict["text"];
} else {
return null;
}
}
/**
* Sets the text
* The text of the question to show to the requestor.
*
* @param string $val The text
*
* @return AccessPackageQuestion
*/
public function setText($val)
{
$this->_propDict["text"] = $val;
return $this;
}
}