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\CivicInfo; 19 20class Contest extends \Google\Collection 21{ 22 protected $collection_key = 'sources'; 23 /** 24 * @var string 25 */ 26 public $ballotPlacement; 27 /** 28 * @var string 29 */ 30 public $ballotTitle; 31 protected $candidatesType = Candidate::class; 32 protected $candidatesDataType = 'array'; 33 protected $districtType = ElectoralDistrict::class; 34 protected $districtDataType = ''; 35 /** 36 * @var string 37 */ 38 public $electorateSpecifications; 39 /** 40 * @var string[] 41 */ 42 public $level; 43 /** 44 * @var string 45 */ 46 public $numberElected; 47 /** 48 * @var string 49 */ 50 public $numberVotingFor; 51 /** 52 * @var string 53 */ 54 public $office; 55 /** 56 * @var string[] 57 */ 58 public $primaryParties; 59 /** 60 * @var string 61 */ 62 public $primaryParty; 63 /** 64 * @var string[] 65 */ 66 public $referendumBallotResponses; 67 /** 68 * @var string 69 */ 70 public $referendumBrief; 71 /** 72 * @var string 73 */ 74 public $referendumConStatement; 75 /** 76 * @var string 77 */ 78 public $referendumEffectOfAbstain; 79 /** 80 * @var string 81 */ 82 public $referendumPassageThreshold; 83 /** 84 * @var string 85 */ 86 public $referendumProStatement; 87 /** 88 * @var string 89 */ 90 public $referendumSubtitle; 91 /** 92 * @var string 93 */ 94 public $referendumText; 95 /** 96 * @var string 97 */ 98 public $referendumTitle; 99 /** 100 * @var string 101 */ 102 public $referendumUrl; 103 /** 104 * @var string[] 105 */ 106 public $roles; 107 protected $sourcesType = Source::class; 108 protected $sourcesDataType = 'array'; 109 /** 110 * @var string 111 */ 112 public $special; 113 /** 114 * @var string 115 */ 116 public $type; 117 118 /** 119 * @param string 120 */ 121 public function setBallotPlacement($ballotPlacement) 122 { 123 $this->ballotPlacement = $ballotPlacement; 124 } 125 /** 126 * @return string 127 */ 128 public function getBallotPlacement() 129 { 130 return $this->ballotPlacement; 131 } 132 /** 133 * @param string 134 */ 135 public function setBallotTitle($ballotTitle) 136 { 137 $this->ballotTitle = $ballotTitle; 138 } 139 /** 140 * @return string 141 */ 142 public function getBallotTitle() 143 { 144 return $this->ballotTitle; 145 } 146 /** 147 * @param Candidate[] 148 */ 149 public function setCandidates($candidates) 150 { 151 $this->candidates = $candidates; 152 } 153 /** 154 * @return Candidate[] 155 */ 156 public function getCandidates() 157 { 158 return $this->candidates; 159 } 160 /** 161 * @param ElectoralDistrict 162 */ 163 public function setDistrict(ElectoralDistrict $district) 164 { 165 $this->district = $district; 166 } 167 /** 168 * @return ElectoralDistrict 169 */ 170 public function getDistrict() 171 { 172 return $this->district; 173 } 174 /** 175 * @param string 176 */ 177 public function setElectorateSpecifications($electorateSpecifications) 178 { 179 $this->electorateSpecifications = $electorateSpecifications; 180 } 181 /** 182 * @return string 183 */ 184 public function getElectorateSpecifications() 185 { 186 return $this->electorateSpecifications; 187 } 188 /** 189 * @param string[] 190 */ 191 public function setLevel($level) 192 { 193 $this->level = $level; 194 } 195 /** 196 * @return string[] 197 */ 198 public function getLevel() 199 { 200 return $this->level; 201 } 202 /** 203 * @param string 204 */ 205 public function setNumberElected($numberElected) 206 { 207 $this->numberElected = $numberElected; 208 } 209 /** 210 * @return string 211 */ 212 public function getNumberElected() 213 { 214 return $this->numberElected; 215 } 216 /** 217 * @param string 218 */ 219 public function setNumberVotingFor($numberVotingFor) 220 { 221 $this->numberVotingFor = $numberVotingFor; 222 } 223 /** 224 * @return string 225 */ 226 public function getNumberVotingFor() 227 { 228 return $this->numberVotingFor; 229 } 230 /** 231 * @param string 232 */ 233 public function setOffice($office) 234 { 235 $this->office = $office; 236 } 237 /** 238 * @return string 239 */ 240 public function getOffice() 241 { 242 return $this->office; 243 } 244 /** 245 * @param string[] 246 */ 247 public function setPrimaryParties($primaryParties) 248 { 249 $this->primaryParties = $primaryParties; 250 } 251 /** 252 * @return string[] 253 */ 254 public function getPrimaryParties() 255 { 256 return $this->primaryParties; 257 } 258 /** 259 * @param string 260 */ 261 public function setPrimaryParty($primaryParty) 262 { 263 $this->primaryParty = $primaryParty; 264 } 265 /** 266 * @return string 267 */ 268 public function getPrimaryParty() 269 { 270 return $this->primaryParty; 271 } 272 /** 273 * @param string[] 274 */ 275 public function setReferendumBallotResponses($referendumBallotResponses) 276 { 277 $this->referendumBallotResponses = $referendumBallotResponses; 278 } 279 /** 280 * @return string[] 281 */ 282 public function getReferendumBallotResponses() 283 { 284 return $this->referendumBallotResponses; 285 } 286 /** 287 * @param string 288 */ 289 public function setReferendumBrief($referendumBrief) 290 { 291 $this->referendumBrief = $referendumBrief; 292 } 293 /** 294 * @return string 295 */ 296 public function getReferendumBrief() 297 { 298 return $this->referendumBrief; 299 } 300 /** 301 * @param string 302 */ 303 public function setReferendumConStatement($referendumConStatement) 304 { 305 $this->referendumConStatement = $referendumConStatement; 306 } 307 /** 308 * @return string 309 */ 310 public function getReferendumConStatement() 311 { 312 return $this->referendumConStatement; 313 } 314 /** 315 * @param string 316 */ 317 public function setReferendumEffectOfAbstain($referendumEffectOfAbstain) 318 { 319 $this->referendumEffectOfAbstain = $referendumEffectOfAbstain; 320 } 321 /** 322 * @return string 323 */ 324 public function getReferendumEffectOfAbstain() 325 { 326 return $this->referendumEffectOfAbstain; 327 } 328 /** 329 * @param string 330 */ 331 public function setReferendumPassageThreshold($referendumPassageThreshold) 332 { 333 $this->referendumPassageThreshold = $referendumPassageThreshold; 334 } 335 /** 336 * @return string 337 */ 338 public function getReferendumPassageThreshold() 339 { 340 return $this->referendumPassageThreshold; 341 } 342 /** 343 * @param string 344 */ 345 public function setReferendumProStatement($referendumProStatement) 346 { 347 $this->referendumProStatement = $referendumProStatement; 348 } 349 /** 350 * @return string 351 */ 352 public function getReferendumProStatement() 353 { 354 return $this->referendumProStatement; 355 } 356 /** 357 * @param string 358 */ 359 public function setReferendumSubtitle($referendumSubtitle) 360 { 361 $this->referendumSubtitle = $referendumSubtitle; 362 } 363 /** 364 * @return string 365 */ 366 public function getReferendumSubtitle() 367 { 368 return $this->referendumSubtitle; 369 } 370 /** 371 * @param string 372 */ 373 public function setReferendumText($referendumText) 374 { 375 $this->referendumText = $referendumText; 376 } 377 /** 378 * @return string 379 */ 380 public function getReferendumText() 381 { 382 return $this->referendumText; 383 } 384 /** 385 * @param string 386 */ 387 public function setReferendumTitle($referendumTitle) 388 { 389 $this->referendumTitle = $referendumTitle; 390 } 391 /** 392 * @return string 393 */ 394 public function getReferendumTitle() 395 { 396 return $this->referendumTitle; 397 } 398 /** 399 * @param string 400 */ 401 public function setReferendumUrl($referendumUrl) 402 { 403 $this->referendumUrl = $referendumUrl; 404 } 405 /** 406 * @return string 407 */ 408 public function getReferendumUrl() 409 { 410 return $this->referendumUrl; 411 } 412 /** 413 * @param string[] 414 */ 415 public function setRoles($roles) 416 { 417 $this->roles = $roles; 418 } 419 /** 420 * @return string[] 421 */ 422 public function getRoles() 423 { 424 return $this->roles; 425 } 426 /** 427 * @param Source[] 428 */ 429 public function setSources($sources) 430 { 431 $this->sources = $sources; 432 } 433 /** 434 * @return Source[] 435 */ 436 public function getSources() 437 { 438 return $this->sources; 439 } 440 /** 441 * @param string 442 */ 443 public function setSpecial($special) 444 { 445 $this->special = $special; 446 } 447 /** 448 * @return string 449 */ 450 public function getSpecial() 451 { 452 return $this->special; 453 } 454 /** 455 * @param string 456 */ 457 public function setType($type) 458 { 459 $this->type = $type; 460 } 461 /** 462 * @return string 463 */ 464 public function getType() 465 { 466 return $this->type; 467 } 468} 469 470// Adding a class alias for backwards compatibility with the previous class name. 471class_alias(Contest::class, 'Google_Service_CivicInfo_Contest'); 472