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\Forms;
19
20class Grade extends \Google\Model
21{
22  /**
23   * @var bool
24   */
25  public $correct;
26  protected $feedbackType = Feedback::class;
27  protected $feedbackDataType = '';
28  public $score;
29
30  /**
31   * @param bool
32   */
33  public function setCorrect($correct)
34  {
35    $this->correct = $correct;
36  }
37  /**
38   * @return bool
39   */
40  public function getCorrect()
41  {
42    return $this->correct;
43  }
44  /**
45   * @param Feedback
46   */
47  public function setFeedback(Feedback $feedback)
48  {
49    $this->feedback = $feedback;
50  }
51  /**
52   * @return Feedback
53   */
54  public function getFeedback()
55  {
56    return $this->feedback;
57  }
58  public function setScore($score)
59  {
60    $this->score = $score;
61  }
62  public function getScore()
63  {
64    return $this->score;
65  }
66}
67
68// Adding a class alias for backwards compatibility with the previous class name.
69class_alias(Grade::class, 'Google_Service_Forms_Grade');
70