IpReputation.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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\PostmasterTools;
  18. class IpReputation extends \Google\Collection
  19. {
  20. protected $collection_key = 'sampleIps';
  21. /**
  22. * @var string
  23. */
  24. public $ipCount;
  25. /**
  26. * @var string
  27. */
  28. public $reputation;
  29. /**
  30. * @var string[]
  31. */
  32. public $sampleIps;
  33. /**
  34. * @param string
  35. */
  36. public function setIpCount($ipCount)
  37. {
  38. $this->ipCount = $ipCount;
  39. }
  40. /**
  41. * @return string
  42. */
  43. public function getIpCount()
  44. {
  45. return $this->ipCount;
  46. }
  47. /**
  48. * @param string
  49. */
  50. public function setReputation($reputation)
  51. {
  52. $this->reputation = $reputation;
  53. }
  54. /**
  55. * @return string
  56. */
  57. public function getReputation()
  58. {
  59. return $this->reputation;
  60. }
  61. /**
  62. * @param string[]
  63. */
  64. public function setSampleIps($sampleIps)
  65. {
  66. $this->sampleIps = $sampleIps;
  67. }
  68. /**
  69. * @return string[]
  70. */
  71. public function getSampleIps()
  72. {
  73. return $this->sampleIps;
  74. }
  75. }
  76. // Adding a class alias for backwards compatibility with the previous class name.
  77. class_alias(IpReputation::class, 'Google_Service_PostmasterTools_IpReputation');