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
18namespace Google\Service\Classroom;
19
20class StudentSubmission extends \Google\Collection
21{
22  protected $collection_key = 'submissionHistory';
23  /**
24   * @var string
25   */
26  public $alternateLink;
27  public $assignedGrade;
28  protected $assignmentSubmissionType = AssignmentSubmission::class;
29  protected $assignmentSubmissionDataType = '';
30  /**
31   * @var bool
32   */
33  public $associatedWithDeveloper;
34  /**
35   * @var string
36   */
37  public $courseId;
38  /**
39   * @var string
40   */
41  public $courseWorkId;
42  /**
43   * @var string
44   */
45  public $courseWorkType;
46  /**
47   * @var string
48   */
49  public $creationTime;
50  public $draftGrade;
51  /**
52   * @var string
53   */
54  public $id;
55  /**
56   * @var bool
57   */
58  public $late;
59  protected $multipleChoiceSubmissionType = MultipleChoiceSubmission::class;
60  protected $multipleChoiceSubmissionDataType = '';
61  protected $shortAnswerSubmissionType = ShortAnswerSubmission::class;
62  protected $shortAnswerSubmissionDataType = '';
63  /**
64   * @var string
65   */
66  public $state;
67  protected $submissionHistoryType = SubmissionHistory::class;
68  protected $submissionHistoryDataType = 'array';
69  /**
70   * @var string
71   */
72  public $updateTime;
73  /**
74   * @var string
75   */
76  public $userId;
77
78  /**
79   * @param string
80   */
81  public function setAlternateLink($alternateLink)
82  {
83    $this->alternateLink = $alternateLink;
84  }
85  /**
86   * @return string
87   */
88  public function getAlternateLink()
89  {
90    return $this->alternateLink;
91  }
92  public function setAssignedGrade($assignedGrade)
93  {
94    $this->assignedGrade = $assignedGrade;
95  }
96  public function getAssignedGrade()
97  {
98    return $this->assignedGrade;
99  }
100  /**
101   * @param AssignmentSubmission
102   */
103  public function setAssignmentSubmission(AssignmentSubmission $assignmentSubmission)
104  {
105    $this->assignmentSubmission = $assignmentSubmission;
106  }
107  /**
108   * @return AssignmentSubmission
109   */
110  public function getAssignmentSubmission()
111  {
112    return $this->assignmentSubmission;
113  }
114  /**
115   * @param bool
116   */
117  public function setAssociatedWithDeveloper($associatedWithDeveloper)
118  {
119    $this->associatedWithDeveloper = $associatedWithDeveloper;
120  }
121  /**
122   * @return bool
123   */
124  public function getAssociatedWithDeveloper()
125  {
126    return $this->associatedWithDeveloper;
127  }
128  /**
129   * @param string
130   */
131  public function setCourseId($courseId)
132  {
133    $this->courseId = $courseId;
134  }
135  /**
136   * @return string
137   */
138  public function getCourseId()
139  {
140    return $this->courseId;
141  }
142  /**
143   * @param string
144   */
145  public function setCourseWorkId($courseWorkId)
146  {
147    $this->courseWorkId = $courseWorkId;
148  }
149  /**
150   * @return string
151   */
152  public function getCourseWorkId()
153  {
154    return $this->courseWorkId;
155  }
156  /**
157   * @param string
158   */
159  public function setCourseWorkType($courseWorkType)
160  {
161    $this->courseWorkType = $courseWorkType;
162  }
163  /**
164   * @return string
165   */
166  public function getCourseWorkType()
167  {
168    return $this->courseWorkType;
169  }
170  /**
171   * @param string
172   */
173  public function setCreationTime($creationTime)
174  {
175    $this->creationTime = $creationTime;
176  }
177  /**
178   * @return string
179   */
180  public function getCreationTime()
181  {
182    return $this->creationTime;
183  }
184  public function setDraftGrade($draftGrade)
185  {
186    $this->draftGrade = $draftGrade;
187  }
188  public function getDraftGrade()
189  {
190    return $this->draftGrade;
191  }
192  /**
193   * @param string
194   */
195  public function setId($id)
196  {
197    $this->id = $id;
198  }
199  /**
200   * @return string
201   */
202  public function getId()
203  {
204    return $this->id;
205  }
206  /**
207   * @param bool
208   */
209  public function setLate($late)
210  {
211    $this->late = $late;
212  }
213  /**
214   * @return bool
215   */
216  public function getLate()
217  {
218    return $this->late;
219  }
220  /**
221   * @param MultipleChoiceSubmission
222   */
223  public function setMultipleChoiceSubmission(MultipleChoiceSubmission $multipleChoiceSubmission)
224  {
225    $this->multipleChoiceSubmission = $multipleChoiceSubmission;
226  }
227  /**
228   * @return MultipleChoiceSubmission
229   */
230  public function getMultipleChoiceSubmission()
231  {
232    return $this->multipleChoiceSubmission;
233  }
234  /**
235   * @param ShortAnswerSubmission
236   */
237  public function setShortAnswerSubmission(ShortAnswerSubmission $shortAnswerSubmission)
238  {
239    $this->shortAnswerSubmission = $shortAnswerSubmission;
240  }
241  /**
242   * @return ShortAnswerSubmission
243   */
244  public function getShortAnswerSubmission()
245  {
246    return $this->shortAnswerSubmission;
247  }
248  /**
249   * @param string
250   */
251  public function setState($state)
252  {
253    $this->state = $state;
254  }
255  /**
256   * @return string
257   */
258  public function getState()
259  {
260    return $this->state;
261  }
262  /**
263   * @param SubmissionHistory[]
264   */
265  public function setSubmissionHistory($submissionHistory)
266  {
267    $this->submissionHistory = $submissionHistory;
268  }
269  /**
270   * @return SubmissionHistory[]
271   */
272  public function getSubmissionHistory()
273  {
274    return $this->submissionHistory;
275  }
276  /**
277   * @param string
278   */
279  public function setUpdateTime($updateTime)
280  {
281    $this->updateTime = $updateTime;
282  }
283  /**
284   * @return string
285   */
286  public function getUpdateTime()
287  {
288    return $this->updateTime;
289  }
290  /**
291   * @param string
292   */
293  public function setUserId($userId)
294  {
295    $this->userId = $userId;
296  }
297  /**
298   * @return string
299   */
300  public function getUserId()
301  {
302    return $this->userId;
303  }
304}
305
306// Adding a class alias for backwards compatibility with the previous class name.
307class_alias(StudentSubmission::class, 'Google_Service_Classroom_StudentSubmission');
308