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 Course extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'courseMaterialSets';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $alternateLink;
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $calendarId;
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $courseGroupEmail;
|
---|
35 | protected $courseMaterialSetsType = CourseMaterialSet::class;
|
---|
36 | protected $courseMaterialSetsDataType = 'array';
|
---|
37 | /**
|
---|
38 | * @var string
|
---|
39 | */
|
---|
40 | public $courseState;
|
---|
41 | /**
|
---|
42 | * @var string
|
---|
43 | */
|
---|
44 | public $creationTime;
|
---|
45 | /**
|
---|
46 | * @var string
|
---|
47 | */
|
---|
48 | public $description;
|
---|
49 | /**
|
---|
50 | * @var string
|
---|
51 | */
|
---|
52 | public $descriptionHeading;
|
---|
53 | /**
|
---|
54 | * @var string
|
---|
55 | */
|
---|
56 | public $enrollmentCode;
|
---|
57 | protected $gradebookSettingsType = GradebookSettings::class;
|
---|
58 | protected $gradebookSettingsDataType = '';
|
---|
59 | /**
|
---|
60 | * @var bool
|
---|
61 | */
|
---|
62 | public $guardiansEnabled;
|
---|
63 | /**
|
---|
64 | * @var string
|
---|
65 | */
|
---|
66 | public $id;
|
---|
67 | /**
|
---|
68 | * @var string
|
---|
69 | */
|
---|
70 | public $name;
|
---|
71 | /**
|
---|
72 | * @var string
|
---|
73 | */
|
---|
74 | public $ownerId;
|
---|
75 | /**
|
---|
76 | * @var string
|
---|
77 | */
|
---|
78 | public $room;
|
---|
79 | /**
|
---|
80 | * @var string
|
---|
81 | */
|
---|
82 | public $section;
|
---|
83 | protected $teacherFolderType = DriveFolder::class;
|
---|
84 | protected $teacherFolderDataType = '';
|
---|
85 | /**
|
---|
86 | * @var string
|
---|
87 | */
|
---|
88 | public $teacherGroupEmail;
|
---|
89 | /**
|
---|
90 | * @var string
|
---|
91 | */
|
---|
92 | public $updateTime;
|
---|
93 |
|
---|
94 | /**
|
---|
95 | * @param string
|
---|
96 | */
|
---|
97 | public function setAlternateLink($alternateLink)
|
---|
98 | {
|
---|
99 | $this->alternateLink = $alternateLink;
|
---|
100 | }
|
---|
101 | /**
|
---|
102 | * @return string
|
---|
103 | */
|
---|
104 | public function getAlternateLink()
|
---|
105 | {
|
---|
106 | return $this->alternateLink;
|
---|
107 | }
|
---|
108 | /**
|
---|
109 | * @param string
|
---|
110 | */
|
---|
111 | public function setCalendarId($calendarId)
|
---|
112 | {
|
---|
113 | $this->calendarId = $calendarId;
|
---|
114 | }
|
---|
115 | /**
|
---|
116 | * @return string
|
---|
117 | */
|
---|
118 | public function getCalendarId()
|
---|
119 | {
|
---|
120 | return $this->calendarId;
|
---|
121 | }
|
---|
122 | /**
|
---|
123 | * @param string
|
---|
124 | */
|
---|
125 | public function setCourseGroupEmail($courseGroupEmail)
|
---|
126 | {
|
---|
127 | $this->courseGroupEmail = $courseGroupEmail;
|
---|
128 | }
|
---|
129 | /**
|
---|
130 | * @return string
|
---|
131 | */
|
---|
132 | public function getCourseGroupEmail()
|
---|
133 | {
|
---|
134 | return $this->courseGroupEmail;
|
---|
135 | }
|
---|
136 | /**
|
---|
137 | * @param CourseMaterialSet[]
|
---|
138 | */
|
---|
139 | public function setCourseMaterialSets($courseMaterialSets)
|
---|
140 | {
|
---|
141 | $this->courseMaterialSets = $courseMaterialSets;
|
---|
142 | }
|
---|
143 | /**
|
---|
144 | * @return CourseMaterialSet[]
|
---|
145 | */
|
---|
146 | public function getCourseMaterialSets()
|
---|
147 | {
|
---|
148 | return $this->courseMaterialSets;
|
---|
149 | }
|
---|
150 | /**
|
---|
151 | * @param string
|
---|
152 | */
|
---|
153 | public function setCourseState($courseState)
|
---|
154 | {
|
---|
155 | $this->courseState = $courseState;
|
---|
156 | }
|
---|
157 | /**
|
---|
158 | * @return string
|
---|
159 | */
|
---|
160 | public function getCourseState()
|
---|
161 | {
|
---|
162 | return $this->courseState;
|
---|
163 | }
|
---|
164 | /**
|
---|
165 | * @param string
|
---|
166 | */
|
---|
167 | public function setCreationTime($creationTime)
|
---|
168 | {
|
---|
169 | $this->creationTime = $creationTime;
|
---|
170 | }
|
---|
171 | /**
|
---|
172 | * @return string
|
---|
173 | */
|
---|
174 | public function getCreationTime()
|
---|
175 | {
|
---|
176 | return $this->creationTime;
|
---|
177 | }
|
---|
178 | /**
|
---|
179 | * @param string
|
---|
180 | */
|
---|
181 | public function setDescription($description)
|
---|
182 | {
|
---|
183 | $this->description = $description;
|
---|
184 | }
|
---|
185 | /**
|
---|
186 | * @return string
|
---|
187 | */
|
---|
188 | public function getDescription()
|
---|
189 | {
|
---|
190 | return $this->description;
|
---|
191 | }
|
---|
192 | /**
|
---|
193 | * @param string
|
---|
194 | */
|
---|
195 | public function setDescriptionHeading($descriptionHeading)
|
---|
196 | {
|
---|
197 | $this->descriptionHeading = $descriptionHeading;
|
---|
198 | }
|
---|
199 | /**
|
---|
200 | * @return string
|
---|
201 | */
|
---|
202 | public function getDescriptionHeading()
|
---|
203 | {
|
---|
204 | return $this->descriptionHeading;
|
---|
205 | }
|
---|
206 | /**
|
---|
207 | * @param string
|
---|
208 | */
|
---|
209 | public function setEnrollmentCode($enrollmentCode)
|
---|
210 | {
|
---|
211 | $this->enrollmentCode = $enrollmentCode;
|
---|
212 | }
|
---|
213 | /**
|
---|
214 | * @return string
|
---|
215 | */
|
---|
216 | public function getEnrollmentCode()
|
---|
217 | {
|
---|
218 | return $this->enrollmentCode;
|
---|
219 | }
|
---|
220 | /**
|
---|
221 | * @param GradebookSettings
|
---|
222 | */
|
---|
223 | public function setGradebookSettings(GradebookSettings $gradebookSettings)
|
---|
224 | {
|
---|
225 | $this->gradebookSettings = $gradebookSettings;
|
---|
226 | }
|
---|
227 | /**
|
---|
228 | * @return GradebookSettings
|
---|
229 | */
|
---|
230 | public function getGradebookSettings()
|
---|
231 | {
|
---|
232 | return $this->gradebookSettings;
|
---|
233 | }
|
---|
234 | /**
|
---|
235 | * @param bool
|
---|
236 | */
|
---|
237 | public function setGuardiansEnabled($guardiansEnabled)
|
---|
238 | {
|
---|
239 | $this->guardiansEnabled = $guardiansEnabled;
|
---|
240 | }
|
---|
241 | /**
|
---|
242 | * @return bool
|
---|
243 | */
|
---|
244 | public function getGuardiansEnabled()
|
---|
245 | {
|
---|
246 | return $this->guardiansEnabled;
|
---|
247 | }
|
---|
248 | /**
|
---|
249 | * @param string
|
---|
250 | */
|
---|
251 | public function setId($id)
|
---|
252 | {
|
---|
253 | $this->id = $id;
|
---|
254 | }
|
---|
255 | /**
|
---|
256 | * @return string
|
---|
257 | */
|
---|
258 | public function getId()
|
---|
259 | {
|
---|
260 | return $this->id;
|
---|
261 | }
|
---|
262 | /**
|
---|
263 | * @param string
|
---|
264 | */
|
---|
265 | public function setName($name)
|
---|
266 | {
|
---|
267 | $this->name = $name;
|
---|
268 | }
|
---|
269 | /**
|
---|
270 | * @return string
|
---|
271 | */
|
---|
272 | public function getName()
|
---|
273 | {
|
---|
274 | return $this->name;
|
---|
275 | }
|
---|
276 | /**
|
---|
277 | * @param string
|
---|
278 | */
|
---|
279 | public function setOwnerId($ownerId)
|
---|
280 | {
|
---|
281 | $this->ownerId = $ownerId;
|
---|
282 | }
|
---|
283 | /**
|
---|
284 | * @return string
|
---|
285 | */
|
---|
286 | public function getOwnerId()
|
---|
287 | {
|
---|
288 | return $this->ownerId;
|
---|
289 | }
|
---|
290 | /**
|
---|
291 | * @param string
|
---|
292 | */
|
---|
293 | public function setRoom($room)
|
---|
294 | {
|
---|
295 | $this->room = $room;
|
---|
296 | }
|
---|
297 | /**
|
---|
298 | * @return string
|
---|
299 | */
|
---|
300 | public function getRoom()
|
---|
301 | {
|
---|
302 | return $this->room;
|
---|
303 | }
|
---|
304 | /**
|
---|
305 | * @param string
|
---|
306 | */
|
---|
307 | public function setSection($section)
|
---|
308 | {
|
---|
309 | $this->section = $section;
|
---|
310 | }
|
---|
311 | /**
|
---|
312 | * @return string
|
---|
313 | */
|
---|
314 | public function getSection()
|
---|
315 | {
|
---|
316 | return $this->section;
|
---|
317 | }
|
---|
318 | /**
|
---|
319 | * @param DriveFolder
|
---|
320 | */
|
---|
321 | public function setTeacherFolder(DriveFolder $teacherFolder)
|
---|
322 | {
|
---|
323 | $this->teacherFolder = $teacherFolder;
|
---|
324 | }
|
---|
325 | /**
|
---|
326 | * @return DriveFolder
|
---|
327 | */
|
---|
328 | public function getTeacherFolder()
|
---|
329 | {
|
---|
330 | return $this->teacherFolder;
|
---|
331 | }
|
---|
332 | /**
|
---|
333 | * @param string
|
---|
334 | */
|
---|
335 | public function setTeacherGroupEmail($teacherGroupEmail)
|
---|
336 | {
|
---|
337 | $this->teacherGroupEmail = $teacherGroupEmail;
|
---|
338 | }
|
---|
339 | /**
|
---|
340 | * @return string
|
---|
341 | */
|
---|
342 | public function getTeacherGroupEmail()
|
---|
343 | {
|
---|
344 | return $this->teacherGroupEmail;
|
---|
345 | }
|
---|
346 | /**
|
---|
347 | * @param string
|
---|
348 | */
|
---|
349 | public function setUpdateTime($updateTime)
|
---|
350 | {
|
---|
351 | $this->updateTime = $updateTime;
|
---|
352 | }
|
---|
353 | /**
|
---|
354 | * @return string
|
---|
355 | */
|
---|
356 | public function getUpdateTime()
|
---|
357 | {
|
---|
358 | return $this->updateTime;
|
---|
359 | }
|
---|
360 | }
|
---|
361 |
|
---|
362 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
363 | class_alias(Course::class, 'Google_Service_Classroom_Course');
|
---|