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 FormResponse extends \Google\Model 21{ 22 protected $answersType = Answer::class; 23 protected $answersDataType = 'map'; 24 /** 25 * @var string 26 */ 27 public $createTime; 28 /** 29 * @var string 30 */ 31 public $formId; 32 /** 33 * @var string 34 */ 35 public $lastSubmittedTime; 36 /** 37 * @var string 38 */ 39 public $respondentEmail; 40 /** 41 * @var string 42 */ 43 public $responseId; 44 public $totalScore; 45 46 /** 47 * @param Answer[] 48 */ 49 public function setAnswers($answers) 50 { 51 $this->answers = $answers; 52 } 53 /** 54 * @return Answer[] 55 */ 56 public function getAnswers() 57 { 58 return $this->answers; 59 } 60 /** 61 * @param string 62 */ 63 public function setCreateTime($createTime) 64 { 65 $this->createTime = $createTime; 66 } 67 /** 68 * @return string 69 */ 70 public function getCreateTime() 71 { 72 return $this->createTime; 73 } 74 /** 75 * @param string 76 */ 77 public function setFormId($formId) 78 { 79 $this->formId = $formId; 80 } 81 /** 82 * @return string 83 */ 84 public function getFormId() 85 { 86 return $this->formId; 87 } 88 /** 89 * @param string 90 */ 91 public function setLastSubmittedTime($lastSubmittedTime) 92 { 93 $this->lastSubmittedTime = $lastSubmittedTime; 94 } 95 /** 96 * @return string 97 */ 98 public function getLastSubmittedTime() 99 { 100 return $this->lastSubmittedTime; 101 } 102 /** 103 * @param string 104 */ 105 public function setRespondentEmail($respondentEmail) 106 { 107 $this->respondentEmail = $respondentEmail; 108 } 109 /** 110 * @return string 111 */ 112 public function getRespondentEmail() 113 { 114 return $this->respondentEmail; 115 } 116 /** 117 * @param string 118 */ 119 public function setResponseId($responseId) 120 { 121 $this->responseId = $responseId; 122 } 123 /** 124 * @return string 125 */ 126 public function getResponseId() 127 { 128 return $this->responseId; 129 } 130 public function setTotalScore($totalScore) 131 { 132 $this->totalScore = $totalScore; 133 } 134 public function getTotalScore() 135 { 136 return $this->totalScore; 137 } 138} 139 140// Adding a class alias for backwards compatibility with the previous class name. 141class_alias(FormResponse::class, 'Google_Service_Forms_FormResponse'); 142