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