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 PollingLocation extends \Google\Collection
21{
22  protected $collection_key = 'sources';
23  protected $addressType = SimpleAddressType::class;
24  protected $addressDataType = '';
25  /**
26   * @var string
27   */
28  public $endDate;
29  public $latitude;
30  public $longitude;
31  /**
32   * @var string
33   */
34  public $name;
35  /**
36   * @var string
37   */
38  public $notes;
39  /**
40   * @var string
41   */
42  public $pollingHours;
43  protected $sourcesType = Source::class;
44  protected $sourcesDataType = 'array';
45  /**
46   * @var string
47   */
48  public $startDate;
49  /**
50   * @var string
51   */
52  public $voterServices;
53
54  /**
55   * @param SimpleAddressType
56   */
57  public function setAddress(SimpleAddressType $address)
58  {
59    $this->address = $address;
60  }
61  /**
62   * @return SimpleAddressType
63   */
64  public function getAddress()
65  {
66    return $this->address;
67  }
68  /**
69   * @param string
70   */
71  public function setEndDate($endDate)
72  {
73    $this->endDate = $endDate;
74  }
75  /**
76   * @return string
77   */
78  public function getEndDate()
79  {
80    return $this->endDate;
81  }
82  public function setLatitude($latitude)
83  {
84    $this->latitude = $latitude;
85  }
86  public function getLatitude()
87  {
88    return $this->latitude;
89  }
90  public function setLongitude($longitude)
91  {
92    $this->longitude = $longitude;
93  }
94  public function getLongitude()
95  {
96    return $this->longitude;
97  }
98  /**
99   * @param string
100   */
101  public function setName($name)
102  {
103    $this->name = $name;
104  }
105  /**
106   * @return string
107   */
108  public function getName()
109  {
110    return $this->name;
111  }
112  /**
113   * @param string
114   */
115  public function setNotes($notes)
116  {
117    $this->notes = $notes;
118  }
119  /**
120   * @return string
121   */
122  public function getNotes()
123  {
124    return $this->notes;
125  }
126  /**
127   * @param string
128   */
129  public function setPollingHours($pollingHours)
130  {
131    $this->pollingHours = $pollingHours;
132  }
133  /**
134   * @return string
135   */
136  public function getPollingHours()
137  {
138    return $this->pollingHours;
139  }
140  /**
141   * @param Source[]
142   */
143  public function setSources($sources)
144  {
145    $this->sources = $sources;
146  }
147  /**
148   * @return Source[]
149   */
150  public function getSources()
151  {
152    return $this->sources;
153  }
154  /**
155   * @param string
156   */
157  public function setStartDate($startDate)
158  {
159    $this->startDate = $startDate;
160  }
161  /**
162   * @return string
163   */
164  public function getStartDate()
165  {
166    return $this->startDate;
167  }
168  /**
169   * @param string
170   */
171  public function setVoterServices($voterServices)
172  {
173    $this->voterServices = $voterServices;
174  }
175  /**
176   * @return string
177   */
178  public function getVoterServices()
179  {
180    return $this->voterServices;
181  }
182}
183
184// Adding a class alias for backwards compatibility with the previous class name.
185class_alias(PollingLocation::class, 'Google_Service_CivicInfo_PollingLocation');
186