SiteVerificationWebResourceResource.php 2.3 KB

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. namespace Google\Service\SiteVerification;
  18. class SiteVerificationWebResourceResource extends \Google\Collection
  19. {
  20. protected $collection_key = 'owners';
  21. /**
  22. * The string used to identify this site. This value should be used in the
  23. * "id" portion of the REST URL for the Get, Update, and Delete operations.
  24. *
  25. * @var string
  26. */
  27. public $id;
  28. /**
  29. * The email addresses of all verified owners.
  30. *
  31. * @var string[]
  32. */
  33. public $owners;
  34. protected $siteType = SiteVerificationWebResourceResourceSite::class;
  35. protected $siteDataType = '';
  36. /**
  37. * The string used to identify this site. This value should be used in the
  38. * "id" portion of the REST URL for the Get, Update, and Delete operations.
  39. *
  40. * @param string $id
  41. */
  42. public function setId($id)
  43. {
  44. $this->id = $id;
  45. }
  46. /**
  47. * @return string
  48. */
  49. public function getId()
  50. {
  51. return $this->id;
  52. }
  53. /**
  54. * The email addresses of all verified owners.
  55. *
  56. * @param string[] $owners
  57. */
  58. public function setOwners($owners)
  59. {
  60. $this->owners = $owners;
  61. }
  62. /**
  63. * @return string[]
  64. */
  65. public function getOwners()
  66. {
  67. return $this->owners;
  68. }
  69. /**
  70. * The address and type of a site that is verified or will be verified.
  71. *
  72. * @param SiteVerificationWebResourceResourceSite $site
  73. */
  74. public function setSite(SiteVerificationWebResourceResourceSite $site)
  75. {
  76. $this->site = $site;
  77. }
  78. /**
  79. * @return SiteVerificationWebResourceResourceSite
  80. */
  81. public function getSite()
  82. {
  83. return $this->site;
  84. }
  85. }
  86. // Adding a class alias for backwards compatibility with the previous class name.
  87. class_alias(SiteVerificationWebResourceResource::class, 'Google_Service_SiteVerification_SiteVerificationWebResourceResource');