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 Question extends \Google\Model
21{
22  protected $choiceQuestionType = ChoiceQuestion::class;
23  protected $choiceQuestionDataType = '';
24  protected $dateQuestionType = DateQuestion::class;
25  protected $dateQuestionDataType = '';
26  protected $fileUploadQuestionType = FileUploadQuestion::class;
27  protected $fileUploadQuestionDataType = '';
28  protected $gradingType = Grading::class;
29  protected $gradingDataType = '';
30  /**
31   * @var string
32   */
33  public $questionId;
34  /**
35   * @var bool
36   */
37  public $required;
38  protected $rowQuestionType = RowQuestion::class;
39  protected $rowQuestionDataType = '';
40  protected $scaleQuestionType = ScaleQuestion::class;
41  protected $scaleQuestionDataType = '';
42  protected $textQuestionType = TextQuestion::class;
43  protected $textQuestionDataType = '';
44  protected $timeQuestionType = TimeQuestion::class;
45  protected $timeQuestionDataType = '';
46
47  /**
48   * @param ChoiceQuestion
49   */
50  public function setChoiceQuestion(ChoiceQuestion $choiceQuestion)
51  {
52    $this->choiceQuestion = $choiceQuestion;
53  }
54  /**
55   * @return ChoiceQuestion
56   */
57  public function getChoiceQuestion()
58  {
59    return $this->choiceQuestion;
60  }
61  /**
62   * @param DateQuestion
63   */
64  public function setDateQuestion(DateQuestion $dateQuestion)
65  {
66    $this->dateQuestion = $dateQuestion;
67  }
68  /**
69   * @return DateQuestion
70   */
71  public function getDateQuestion()
72  {
73    return $this->dateQuestion;
74  }
75  /**
76   * @param FileUploadQuestion
77   */
78  public function setFileUploadQuestion(FileUploadQuestion $fileUploadQuestion)
79  {
80    $this->fileUploadQuestion = $fileUploadQuestion;
81  }
82  /**
83   * @return FileUploadQuestion
84   */
85  public function getFileUploadQuestion()
86  {
87    return $this->fileUploadQuestion;
88  }
89  /**
90   * @param Grading
91   */
92  public function setGrading(Grading $grading)
93  {
94    $this->grading = $grading;
95  }
96  /**
97   * @return Grading
98   */
99  public function getGrading()
100  {
101    return $this->grading;
102  }
103  /**
104   * @param string
105   */
106  public function setQuestionId($questionId)
107  {
108    $this->questionId = $questionId;
109  }
110  /**
111   * @return string
112   */
113  public function getQuestionId()
114  {
115    return $this->questionId;
116  }
117  /**
118   * @param bool
119   */
120  public function setRequired($required)
121  {
122    $this->required = $required;
123  }
124  /**
125   * @return bool
126   */
127  public function getRequired()
128  {
129    return $this->required;
130  }
131  /**
132   * @param RowQuestion
133   */
134  public function setRowQuestion(RowQuestion $rowQuestion)
135  {
136    $this->rowQuestion = $rowQuestion;
137  }
138  /**
139   * @return RowQuestion
140   */
141  public function getRowQuestion()
142  {
143    return $this->rowQuestion;
144  }
145  /**
146   * @param ScaleQuestion
147   */
148  public function setScaleQuestion(ScaleQuestion $scaleQuestion)
149  {
150    $this->scaleQuestion = $scaleQuestion;
151  }
152  /**
153   * @return ScaleQuestion
154   */
155  public function getScaleQuestion()
156  {
157    return $this->scaleQuestion;
158  }
159  /**
160   * @param TextQuestion
161   */
162  public function setTextQuestion(TextQuestion $textQuestion)
163  {
164    $this->textQuestion = $textQuestion;
165  }
166  /**
167   * @return TextQuestion
168   */
169  public function getTextQuestion()
170  {
171    return $this->textQuestion;
172  }
173  /**
174   * @param TimeQuestion
175   */
176  public function setTimeQuestion(TimeQuestion $timeQuestion)
177  {
178    $this->timeQuestion = $timeQuestion;
179  }
180  /**
181   * @return TimeQuestion
182   */
183  public function getTimeQuestion()
184  {
185    return $this->timeQuestion;
186  }
187}
188
189// Adding a class alias for backwards compatibility with the previous class name.
190class_alias(Question::class, 'Google_Service_Forms_Question');
191