Aucune description

AdministrationRegion.php 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection
  18. {
  19. protected $collection_key = 'sources';
  20. protected $internal_gapi_mappings = array(
  21. "localJurisdiction" => "local_jurisdiction",
  22. );
  23. protected $electionAdministrationBodyType = 'Google_Service_CivicInfo_AdministrativeBody';
  24. protected $electionAdministrationBodyDataType = '';
  25. public $id;
  26. protected $localJurisdictionType = 'Google_Service_CivicInfo_AdministrationRegion';
  27. protected $localJurisdictionDataType = '';
  28. public $name;
  29. protected $sourcesType = 'Google_Service_CivicInfo_Source';
  30. protected $sourcesDataType = 'array';
  31. /**
  32. * @param Google_Service_CivicInfo_AdministrativeBody
  33. */
  34. public function setElectionAdministrationBody(Google_Service_CivicInfo_AdministrativeBody $electionAdministrationBody)
  35. {
  36. $this->electionAdministrationBody = $electionAdministrationBody;
  37. }
  38. /**
  39. * @return Google_Service_CivicInfo_AdministrativeBody
  40. */
  41. public function getElectionAdministrationBody()
  42. {
  43. return $this->electionAdministrationBody;
  44. }
  45. public function setId($id)
  46. {
  47. $this->id = $id;
  48. }
  49. public function getId()
  50. {
  51. return $this->id;
  52. }
  53. /**
  54. * @param Google_Service_CivicInfo_AdministrationRegion
  55. */
  56. public function setLocalJurisdiction(Google_Service_CivicInfo_AdministrationRegion $localJurisdiction)
  57. {
  58. $this->localJurisdiction = $localJurisdiction;
  59. }
  60. /**
  61. * @return Google_Service_CivicInfo_AdministrationRegion
  62. */
  63. public function getLocalJurisdiction()
  64. {
  65. return $this->localJurisdiction;
  66. }
  67. public function setName($name)
  68. {
  69. $this->name = $name;
  70. }
  71. public function getName()
  72. {
  73. return $this->name;
  74. }
  75. /**
  76. * @param Google_Service_CivicInfo_Source
  77. */
  78. public function setSources($sources)
  79. {
  80. $this->sources = $sources;
  81. }
  82. /**
  83. * @return Google_Service_CivicInfo_Source
  84. */
  85. public function getSources()
  86. {
  87. return $this->sources;
  88. }
  89. }