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\MyBusinessQA; 19 20class Question extends \Google\Collection 21{ 22 protected $collection_key = 'topAnswers'; 23 protected $authorType = Author::class; 24 protected $authorDataType = ''; 25 /** 26 * @var string 27 */ 28 public $createTime; 29 /** 30 * @var string 31 */ 32 public $name; 33 /** 34 * @var string 35 */ 36 public $text; 37 protected $topAnswersType = Answer::class; 38 protected $topAnswersDataType = 'array'; 39 /** 40 * @var int 41 */ 42 public $totalAnswerCount; 43 /** 44 * @var string 45 */ 46 public $updateTime; 47 /** 48 * @var int 49 */ 50 public $upvoteCount; 51 52 /** 53 * @param Author 54 */ 55 public function setAuthor(Author $author) 56 { 57 $this->author = $author; 58 } 59 /** 60 * @return Author 61 */ 62 public function getAuthor() 63 { 64 return $this->author; 65 } 66 /** 67 * @param string 68 */ 69 public function setCreateTime($createTime) 70 { 71 $this->createTime = $createTime; 72 } 73 /** 74 * @return string 75 */ 76 public function getCreateTime() 77 { 78 return $this->createTime; 79 } 80 /** 81 * @param string 82 */ 83 public function setName($name) 84 { 85 $this->name = $name; 86 } 87 /** 88 * @return string 89 */ 90 public function getName() 91 { 92 return $this->name; 93 } 94 /** 95 * @param string 96 */ 97 public function setText($text) 98 { 99 $this->text = $text; 100 } 101 /** 102 * @return string 103 */ 104 public function getText() 105 { 106 return $this->text; 107 } 108 /** 109 * @param Answer[] 110 */ 111 public function setTopAnswers($topAnswers) 112 { 113 $this->topAnswers = $topAnswers; 114 } 115 /** 116 * @return Answer[] 117 */ 118 public function getTopAnswers() 119 { 120 return $this->topAnswers; 121 } 122 /** 123 * @param int 124 */ 125 public function setTotalAnswerCount($totalAnswerCount) 126 { 127 $this->totalAnswerCount = $totalAnswerCount; 128 } 129 /** 130 * @return int 131 */ 132 public function getTotalAnswerCount() 133 { 134 return $this->totalAnswerCount; 135 } 136 /** 137 * @param string 138 */ 139 public function setUpdateTime($updateTime) 140 { 141 $this->updateTime = $updateTime; 142 } 143 /** 144 * @return string 145 */ 146 public function getUpdateTime() 147 { 148 return $this->updateTime; 149 } 150 /** 151 * @param int 152 */ 153 public function setUpvoteCount($upvoteCount) 154 { 155 $this->upvoteCount = $upvoteCount; 156 } 157 /** 158 * @return int 159 */ 160 public function getUpvoteCount() 161 { 162 return $this->upvoteCount; 163 } 164} 165 166// Adding a class alias for backwards compatibility with the previous class name. 167class_alias(Question::class, 'Google_Service_MyBusinessQA_Question'); 168