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 CourseWork extends \Google\Collection
21{
22  protected $collection_key = 'materials';
23  /**
24   * @var string
25   */
26  public $alternateLink;
27  /**
28   * @var string
29   */
30  public $assigneeMode;
31  protected $assignmentType = Assignment::class;
32  protected $assignmentDataType = '';
33  /**
34   * @var bool
35   */
36  public $associatedWithDeveloper;
37  /**
38   * @var string
39   */
40  public $courseId;
41  /**
42   * @var string
43   */
44  public $creationTime;
45  /**
46   * @var string
47   */
48  public $creatorUserId;
49  /**
50   * @var string
51   */
52  public $description;
53  protected $dueDateType = Date::class;
54  protected $dueDateDataType = '';
55  protected $dueTimeType = TimeOfDay::class;
56  protected $dueTimeDataType = '';
57  protected $gradeCategoryType = GradeCategory::class;
58  protected $gradeCategoryDataType = '';
59  /**
60   * @var string
61   */
62  public $id;
63  protected $individualStudentsOptionsType = IndividualStudentsOptions::class;
64  protected $individualStudentsOptionsDataType = '';
65  protected $materialsType = Material::class;
66  protected $materialsDataType = 'array';
67  public $maxPoints;
68  protected $multipleChoiceQuestionType = MultipleChoiceQuestion::class;
69  protected $multipleChoiceQuestionDataType = '';
70  /**
71   * @var string
72   */
73  public $scheduledTime;
74  /**
75   * @var string
76   */
77  public $state;
78  /**
79   * @var string
80   */
81  public $submissionModificationMode;
82  /**
83   * @var string
84   */
85  public $title;
86  /**
87   * @var string
88   */
89  public $topicId;
90  /**
91   * @var string
92   */
93  public $updateTime;
94  /**
95   * @var string
96   */
97  public $workType;
98
99  /**
100   * @param string
101   */
102  public function setAlternateLink($alternateLink)
103  {
104    $this->alternateLink = $alternateLink;
105  }
106  /**
107   * @return string
108   */
109  public function getAlternateLink()
110  {
111    return $this->alternateLink;
112  }
113  /**
114   * @param string
115   */
116  public function setAssigneeMode($assigneeMode)
117  {
118    $this->assigneeMode = $assigneeMode;
119  }
120  /**
121   * @return string
122   */
123  public function getAssigneeMode()
124  {
125    return $this->assigneeMode;
126  }
127  /**
128   * @param Assignment
129   */
130  public function setAssignment(Assignment $assignment)
131  {
132    $this->assignment = $assignment;
133  }
134  /**
135   * @return Assignment
136   */
137  public function getAssignment()
138  {
139    return $this->assignment;
140  }
141  /**
142   * @param bool
143   */
144  public function setAssociatedWithDeveloper($associatedWithDeveloper)
145  {
146    $this->associatedWithDeveloper = $associatedWithDeveloper;
147  }
148  /**
149   * @return bool
150   */
151  public function getAssociatedWithDeveloper()
152  {
153    return $this->associatedWithDeveloper;
154  }
155  /**
156   * @param string
157   */
158  public function setCourseId($courseId)
159  {
160    $this->courseId = $courseId;
161  }
162  /**
163   * @return string
164   */
165  public function getCourseId()
166  {
167    return $this->courseId;
168  }
169  /**
170   * @param string
171   */
172  public function setCreationTime($creationTime)
173  {
174    $this->creationTime = $creationTime;
175  }
176  /**
177   * @return string
178   */
179  public function getCreationTime()
180  {
181    return $this->creationTime;
182  }
183  /**
184   * @param string
185   */
186  public function setCreatorUserId($creatorUserId)
187  {
188    $this->creatorUserId = $creatorUserId;
189  }
190  /**
191   * @return string
192   */
193  public function getCreatorUserId()
194  {
195    return $this->creatorUserId;
196  }
197  /**
198   * @param string
199   */
200  public function setDescription($description)
201  {
202    $this->description = $description;
203  }
204  /**
205   * @return string
206   */
207  public function getDescription()
208  {
209    return $this->description;
210  }
211  /**
212   * @param Date
213   */
214  public function setDueDate(Date $dueDate)
215  {
216    $this->dueDate = $dueDate;
217  }
218  /**
219   * @return Date
220   */
221  public function getDueDate()
222  {
223    return $this->dueDate;
224  }
225  /**
226   * @param TimeOfDay
227   */
228  public function setDueTime(TimeOfDay $dueTime)
229  {
230    $this->dueTime = $dueTime;
231  }
232  /**
233   * @return TimeOfDay
234   */
235  public function getDueTime()
236  {
237    return $this->dueTime;
238  }
239  /**
240   * @param GradeCategory
241   */
242  public function setGradeCategory(GradeCategory $gradeCategory)
243  {
244    $this->gradeCategory = $gradeCategory;
245  }
246  /**
247   * @return GradeCategory
248   */
249  public function getGradeCategory()
250  {
251    return $this->gradeCategory;
252  }
253  /**
254   * @param string
255   */
256  public function setId($id)
257  {
258    $this->id = $id;
259  }
260  /**
261   * @return string
262   */
263  public function getId()
264  {
265    return $this->id;
266  }
267  /**
268   * @param IndividualStudentsOptions
269   */
270  public function setIndividualStudentsOptions(IndividualStudentsOptions $individualStudentsOptions)
271  {
272    $this->individualStudentsOptions = $individualStudentsOptions;
273  }
274  /**
275   * @return IndividualStudentsOptions
276   */
277  public function getIndividualStudentsOptions()
278  {
279    return $this->individualStudentsOptions;
280  }
281  /**
282   * @param Material[]
283   */
284  public function setMaterials($materials)
285  {
286    $this->materials = $materials;
287  }
288  /**
289   * @return Material[]
290   */
291  public function getMaterials()
292  {
293    return $this->materials;
294  }
295  public function setMaxPoints($maxPoints)
296  {
297    $this->maxPoints = $maxPoints;
298  }
299  public function getMaxPoints()
300  {
301    return $this->maxPoints;
302  }
303  /**
304   * @param MultipleChoiceQuestion
305   */
306  public function setMultipleChoiceQuestion(MultipleChoiceQuestion $multipleChoiceQuestion)
307  {
308    $this->multipleChoiceQuestion = $multipleChoiceQuestion;
309  }
310  /**
311   * @return MultipleChoiceQuestion
312   */
313  public function getMultipleChoiceQuestion()
314  {
315    return $this->multipleChoiceQuestion;
316  }
317  /**
318   * @param string
319   */
320  public function setScheduledTime($scheduledTime)
321  {
322    $this->scheduledTime = $scheduledTime;
323  }
324  /**
325   * @return string
326   */
327  public function getScheduledTime()
328  {
329    return $this->scheduledTime;
330  }
331  /**
332   * @param string
333   */
334  public function setState($state)
335  {
336    $this->state = $state;
337  }
338  /**
339   * @return string
340   */
341  public function getState()
342  {
343    return $this->state;
344  }
345  /**
346   * @param string
347   */
348  public function setSubmissionModificationMode($submissionModificationMode)
349  {
350    $this->submissionModificationMode = $submissionModificationMode;
351  }
352  /**
353   * @return string
354   */
355  public function getSubmissionModificationMode()
356  {
357    return $this->submissionModificationMode;
358  }
359  /**
360   * @param string
361   */
362  public function setTitle($title)
363  {
364    $this->title = $title;
365  }
366  /**
367   * @return string
368   */
369  public function getTitle()
370  {
371    return $this->title;
372  }
373  /**
374   * @param string
375   */
376  public function setTopicId($topicId)
377  {
378    $this->topicId = $topicId;
379  }
380  /**
381   * @return string
382   */
383  public function getTopicId()
384  {
385    return $this->topicId;
386  }
387  /**
388   * @param string
389   */
390  public function setUpdateTime($updateTime)
391  {
392    $this->updateTime = $updateTime;
393  }
394  /**
395   * @return string
396   */
397  public function getUpdateTime()
398  {
399    return $this->updateTime;
400  }
401  /**
402   * @param string
403   */
404  public function setWorkType($workType)
405  {
406    $this->workType = $workType;
407  }
408  /**
409   * @return string
410   */
411  public function getWorkType()
412  {
413    return $this->workType;
414  }
415}
416
417// Adding a class alias for backwards compatibility with the previous class name.
418class_alias(CourseWork::class, 'Google_Service_Classroom_CourseWork');
419