source: vendor/google/apiclient-services/src/CivicInfo/VoterInfoResponse.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload new project files

  • Property mode set to 100644
File size: 4.7 KB
Line 
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 VoterInfoResponse extends \Google\Collection
21{
22 protected $collection_key = 'state';
23 protected $contestsType = Contest::class;
24 protected $contestsDataType = 'array';
25 protected $dropOffLocationsType = PollingLocation::class;
26 protected $dropOffLocationsDataType = 'array';
27 protected $earlyVoteSitesType = PollingLocation::class;
28 protected $earlyVoteSitesDataType = 'array';
29 protected $electionType = Election::class;
30 protected $electionDataType = '';
31 /**
32 * @var string
33 */
34 public $kind;
35 /**
36 * @var bool
37 */
38 public $mailOnly;
39 protected $normalizedInputType = SimpleAddressType::class;
40 protected $normalizedInputDataType = '';
41 protected $otherElectionsType = Election::class;
42 protected $otherElectionsDataType = 'array';
43 protected $pollingLocationsType = PollingLocation::class;
44 protected $pollingLocationsDataType = 'array';
45 /**
46 * @var string
47 */
48 public $precinctId;
49 protected $precinctsType = Precinct::class;
50 protected $precinctsDataType = 'array';
51 protected $stateType = AdministrationRegion::class;
52 protected $stateDataType = 'array';
53
54 /**
55 * @param Contest[]
56 */
57 public function setContests($contests)
58 {
59 $this->contests = $contests;
60 }
61 /**
62 * @return Contest[]
63 */
64 public function getContests()
65 {
66 return $this->contests;
67 }
68 /**
69 * @param PollingLocation[]
70 */
71 public function setDropOffLocations($dropOffLocations)
72 {
73 $this->dropOffLocations = $dropOffLocations;
74 }
75 /**
76 * @return PollingLocation[]
77 */
78 public function getDropOffLocations()
79 {
80 return $this->dropOffLocations;
81 }
82 /**
83 * @param PollingLocation[]
84 */
85 public function setEarlyVoteSites($earlyVoteSites)
86 {
87 $this->earlyVoteSites = $earlyVoteSites;
88 }
89 /**
90 * @return PollingLocation[]
91 */
92 public function getEarlyVoteSites()
93 {
94 return $this->earlyVoteSites;
95 }
96 /**
97 * @param Election
98 */
99 public function setElection(Election $election)
100 {
101 $this->election = $election;
102 }
103 /**
104 * @return Election
105 */
106 public function getElection()
107 {
108 return $this->election;
109 }
110 /**
111 * @param string
112 */
113 public function setKind($kind)
114 {
115 $this->kind = $kind;
116 }
117 /**
118 * @return string
119 */
120 public function getKind()
121 {
122 return $this->kind;
123 }
124 /**
125 * @param bool
126 */
127 public function setMailOnly($mailOnly)
128 {
129 $this->mailOnly = $mailOnly;
130 }
131 /**
132 * @return bool
133 */
134 public function getMailOnly()
135 {
136 return $this->mailOnly;
137 }
138 /**
139 * @param SimpleAddressType
140 */
141 public function setNormalizedInput(SimpleAddressType $normalizedInput)
142 {
143 $this->normalizedInput = $normalizedInput;
144 }
145 /**
146 * @return SimpleAddressType
147 */
148 public function getNormalizedInput()
149 {
150 return $this->normalizedInput;
151 }
152 /**
153 * @param Election[]
154 */
155 public function setOtherElections($otherElections)
156 {
157 $this->otherElections = $otherElections;
158 }
159 /**
160 * @return Election[]
161 */
162 public function getOtherElections()
163 {
164 return $this->otherElections;
165 }
166 /**
167 * @param PollingLocation[]
168 */
169 public function setPollingLocations($pollingLocations)
170 {
171 $this->pollingLocations = $pollingLocations;
172 }
173 /**
174 * @return PollingLocation[]
175 */
176 public function getPollingLocations()
177 {
178 return $this->pollingLocations;
179 }
180 /**
181 * @param string
182 */
183 public function setPrecinctId($precinctId)
184 {
185 $this->precinctId = $precinctId;
186 }
187 /**
188 * @return string
189 */
190 public function getPrecinctId()
191 {
192 return $this->precinctId;
193 }
194 /**
195 * @param Precinct[]
196 */
197 public function setPrecincts($precincts)
198 {
199 $this->precincts = $precincts;
200 }
201 /**
202 * @return Precinct[]
203 */
204 public function getPrecincts()
205 {
206 return $this->precincts;
207 }
208 /**
209 * @param AdministrationRegion[]
210 */
211 public function setState($state)
212 {
213 $this->state = $state;
214 }
215 /**
216 * @return AdministrationRegion[]
217 */
218 public function getState()
219 {
220 return $this->state;
221 }
222}
223
224// Adding a class alias for backwards compatibility with the previous class name.
225class_alias(VoterInfoResponse::class, 'Google_Service_CivicInfo_VoterInfoResponse');
Note: See TracBrowser for help on using the repository browser.