1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\Classroom;
|
---|
19 |
|
---|
20 | class StudentSubmission extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'submissionHistory';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $alternateLink;
|
---|
27 | public $assignedGrade;
|
---|
28 | protected $assignedRubricGradesType = RubricGrade::class;
|
---|
29 | protected $assignedRubricGradesDataType = 'map';
|
---|
30 | protected $assignmentSubmissionType = AssignmentSubmission::class;
|
---|
31 | protected $assignmentSubmissionDataType = '';
|
---|
32 | /**
|
---|
33 | * @var bool
|
---|
34 | */
|
---|
35 | public $associatedWithDeveloper;
|
---|
36 | /**
|
---|
37 | * @var string
|
---|
38 | */
|
---|
39 | public $courseId;
|
---|
40 | /**
|
---|
41 | * @var string
|
---|
42 | */
|
---|
43 | public $courseWorkId;
|
---|
44 | /**
|
---|
45 | * @var string
|
---|
46 | */
|
---|
47 | public $courseWorkType;
|
---|
48 | /**
|
---|
49 | * @var string
|
---|
50 | */
|
---|
51 | public $creationTime;
|
---|
52 | public $draftGrade;
|
---|
53 | protected $draftRubricGradesType = RubricGrade::class;
|
---|
54 | protected $draftRubricGradesDataType = 'map';
|
---|
55 | /**
|
---|
56 | * @var string
|
---|
57 | */
|
---|
58 | public $id;
|
---|
59 | /**
|
---|
60 | * @var bool
|
---|
61 | */
|
---|
62 | public $late;
|
---|
63 | protected $multipleChoiceSubmissionType = MultipleChoiceSubmission::class;
|
---|
64 | protected $multipleChoiceSubmissionDataType = '';
|
---|
65 | protected $shortAnswerSubmissionType = ShortAnswerSubmission::class;
|
---|
66 | protected $shortAnswerSubmissionDataType = '';
|
---|
67 | /**
|
---|
68 | * @var string
|
---|
69 | */
|
---|
70 | public $state;
|
---|
71 | protected $submissionHistoryType = SubmissionHistory::class;
|
---|
72 | protected $submissionHistoryDataType = 'array';
|
---|
73 | /**
|
---|
74 | * @var string
|
---|
75 | */
|
---|
76 | public $updateTime;
|
---|
77 | /**
|
---|
78 | * @var string
|
---|
79 | */
|
---|
80 | public $userId;
|
---|
81 |
|
---|
82 | /**
|
---|
83 | * @param string
|
---|
84 | */
|
---|
85 | public function setAlternateLink($alternateLink)
|
---|
86 | {
|
---|
87 | $this->alternateLink = $alternateLink;
|
---|
88 | }
|
---|
89 | /**
|
---|
90 | * @return string
|
---|
91 | */
|
---|
92 | public function getAlternateLink()
|
---|
93 | {
|
---|
94 | return $this->alternateLink;
|
---|
95 | }
|
---|
96 | public function setAssignedGrade($assignedGrade)
|
---|
97 | {
|
---|
98 | $this->assignedGrade = $assignedGrade;
|
---|
99 | }
|
---|
100 | public function getAssignedGrade()
|
---|
101 | {
|
---|
102 | return $this->assignedGrade;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @param RubricGrade[]
|
---|
106 | */
|
---|
107 | public function setAssignedRubricGrades($assignedRubricGrades)
|
---|
108 | {
|
---|
109 | $this->assignedRubricGrades = $assignedRubricGrades;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @return RubricGrade[]
|
---|
113 | */
|
---|
114 | public function getAssignedRubricGrades()
|
---|
115 | {
|
---|
116 | return $this->assignedRubricGrades;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @param AssignmentSubmission
|
---|
120 | */
|
---|
121 | public function setAssignmentSubmission(AssignmentSubmission $assignmentSubmission)
|
---|
122 | {
|
---|
123 | $this->assignmentSubmission = $assignmentSubmission;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return AssignmentSubmission
|
---|
127 | */
|
---|
128 | public function getAssignmentSubmission()
|
---|
129 | {
|
---|
130 | return $this->assignmentSubmission;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param bool
|
---|
134 | */
|
---|
135 | public function setAssociatedWithDeveloper($associatedWithDeveloper)
|
---|
136 | {
|
---|
137 | $this->associatedWithDeveloper = $associatedWithDeveloper;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return bool
|
---|
141 | */
|
---|
142 | public function getAssociatedWithDeveloper()
|
---|
143 | {
|
---|
144 | return $this->associatedWithDeveloper;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param string
|
---|
148 | */
|
---|
149 | public function setCourseId($courseId)
|
---|
150 | {
|
---|
151 | $this->courseId = $courseId;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return string
|
---|
155 | */
|
---|
156 | public function getCourseId()
|
---|
157 | {
|
---|
158 | return $this->courseId;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param string
|
---|
162 | */
|
---|
163 | public function setCourseWorkId($courseWorkId)
|
---|
164 | {
|
---|
165 | $this->courseWorkId = $courseWorkId;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return string
|
---|
169 | */
|
---|
170 | public function getCourseWorkId()
|
---|
171 | {
|
---|
172 | return $this->courseWorkId;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @param string
|
---|
176 | */
|
---|
177 | public function setCourseWorkType($courseWorkType)
|
---|
178 | {
|
---|
179 | $this->courseWorkType = $courseWorkType;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @return string
|
---|
183 | */
|
---|
184 | public function getCourseWorkType()
|
---|
185 | {
|
---|
186 | return $this->courseWorkType;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @param string
|
---|
190 | */
|
---|
191 | public function setCreationTime($creationTime)
|
---|
192 | {
|
---|
193 | $this->creationTime = $creationTime;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @return string
|
---|
197 | */
|
---|
198 | public function getCreationTime()
|
---|
199 | {
|
---|
200 | return $this->creationTime;
|
---|
201 | }
|
---|
202 | public function setDraftGrade($draftGrade)
|
---|
203 | {
|
---|
204 | $this->draftGrade = $draftGrade;
|
---|
205 | }
|
---|
206 | public function getDraftGrade()
|
---|
207 | {
|
---|
208 | return $this->draftGrade;
|
---|
209 | }
|
---|
210 | /**
|
---|
211 | * @param RubricGrade[]
|
---|
212 | */
|
---|
213 | public function setDraftRubricGrades($draftRubricGrades)
|
---|
214 | {
|
---|
215 | $this->draftRubricGrades = $draftRubricGrades;
|
---|
216 | }
|
---|
217 | /**
|
---|
218 | * @return RubricGrade[]
|
---|
219 | */
|
---|
220 | public function getDraftRubricGrades()
|
---|
221 | {
|
---|
222 | return $this->draftRubricGrades;
|
---|
223 | }
|
---|
224 | /**
|
---|
225 | * @param string
|
---|
226 | */
|
---|
227 | public function setId($id)
|
---|
228 | {
|
---|
229 | $this->id = $id;
|
---|
230 | }
|
---|
231 | /**
|
---|
232 | * @return string
|
---|
233 | */
|
---|
234 | public function getId()
|
---|
235 | {
|
---|
236 | return $this->id;
|
---|
237 | }
|
---|
238 | /**
|
---|
239 | * @param bool
|
---|
240 | */
|
---|
241 | public function setLate($late)
|
---|
242 | {
|
---|
243 | $this->late = $late;
|
---|
244 | }
|
---|
245 | /**
|
---|
246 | * @return bool
|
---|
247 | */
|
---|
248 | public function getLate()
|
---|
249 | {
|
---|
250 | return $this->late;
|
---|
251 | }
|
---|
252 | /**
|
---|
253 | * @param MultipleChoiceSubmission
|
---|
254 | */
|
---|
255 | public function setMultipleChoiceSubmission(MultipleChoiceSubmission $multipleChoiceSubmission)
|
---|
256 | {
|
---|
257 | $this->multipleChoiceSubmission = $multipleChoiceSubmission;
|
---|
258 | }
|
---|
259 | /**
|
---|
260 | * @return MultipleChoiceSubmission
|
---|
261 | */
|
---|
262 | public function getMultipleChoiceSubmission()
|
---|
263 | {
|
---|
264 | return $this->multipleChoiceSubmission;
|
---|
265 | }
|
---|
266 | /**
|
---|
267 | * @param ShortAnswerSubmission
|
---|
268 | */
|
---|
269 | public function setShortAnswerSubmission(ShortAnswerSubmission $shortAnswerSubmission)
|
---|
270 | {
|
---|
271 | $this->shortAnswerSubmission = $shortAnswerSubmission;
|
---|
272 | }
|
---|
273 | /**
|
---|
274 | * @return ShortAnswerSubmission
|
---|
275 | */
|
---|
276 | public function getShortAnswerSubmission()
|
---|
277 | {
|
---|
278 | return $this->shortAnswerSubmission;
|
---|
279 | }
|
---|
280 | /**
|
---|
281 | * @param string
|
---|
282 | */
|
---|
283 | public function setState($state)
|
---|
284 | {
|
---|
285 | $this->state = $state;
|
---|
286 | }
|
---|
287 | /**
|
---|
288 | * @return string
|
---|
289 | */
|
---|
290 | public function getState()
|
---|
291 | {
|
---|
292 | return $this->state;
|
---|
293 | }
|
---|
294 | /**
|
---|
295 | * @param SubmissionHistory[]
|
---|
296 | */
|
---|
297 | public function setSubmissionHistory($submissionHistory)
|
---|
298 | {
|
---|
299 | $this->submissionHistory = $submissionHistory;
|
---|
300 | }
|
---|
301 | /**
|
---|
302 | * @return SubmissionHistory[]
|
---|
303 | */
|
---|
304 | public function getSubmissionHistory()
|
---|
305 | {
|
---|
306 | return $this->submissionHistory;
|
---|
307 | }
|
---|
308 | /**
|
---|
309 | * @param string
|
---|
310 | */
|
---|
311 | public function setUpdateTime($updateTime)
|
---|
312 | {
|
---|
313 | $this->updateTime = $updateTime;
|
---|
314 | }
|
---|
315 | /**
|
---|
316 | * @return string
|
---|
317 | */
|
---|
318 | public function getUpdateTime()
|
---|
319 | {
|
---|
320 | return $this->updateTime;
|
---|
321 | }
|
---|
322 | /**
|
---|
323 | * @param string
|
---|
324 | */
|
---|
325 | public function setUserId($userId)
|
---|
326 | {
|
---|
327 | $this->userId = $userId;
|
---|
328 | }
|
---|
329 | /**
|
---|
330 | * @return string
|
---|
331 | */
|
---|
332 | public function getUserId()
|
---|
333 | {
|
---|
334 | return $this->userId;
|
---|
335 | }
|
---|
336 | }
|
---|
337 |
|
---|
338 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
339 | class_alias(StudentSubmission::class, 'Google_Service_Classroom_StudentSubmission');
|
---|