TrafficStats.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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 TrafficStats extends \Google\Collection
  19. {
  20. protected $collection_key = 'spammyFeedbackLoops';
  21. protected $deliveryErrorsType = DeliveryError::class;
  22. protected $deliveryErrorsDataType = 'array';
  23. public $dkimSuccessRatio;
  24. public $dmarcSuccessRatio;
  25. /**
  26. * @var string
  27. */
  28. public $domainReputation;
  29. public $inboundEncryptionRatio;
  30. protected $ipReputationsType = IpReputation::class;
  31. protected $ipReputationsDataType = 'array';
  32. /**
  33. * @var string
  34. */
  35. public $name;
  36. public $outboundEncryptionRatio;
  37. protected $spammyFeedbackLoopsType = FeedbackLoop::class;
  38. protected $spammyFeedbackLoopsDataType = 'array';
  39. public $spfSuccessRatio;
  40. public $userReportedSpamRatio;
  41. /**
  42. * @param DeliveryError[]
  43. */
  44. public function setDeliveryErrors($deliveryErrors)
  45. {
  46. $this->deliveryErrors = $deliveryErrors;
  47. }
  48. /**
  49. * @return DeliveryError[]
  50. */
  51. public function getDeliveryErrors()
  52. {
  53. return $this->deliveryErrors;
  54. }
  55. public function setDkimSuccessRatio($dkimSuccessRatio)
  56. {
  57. $this->dkimSuccessRatio = $dkimSuccessRatio;
  58. }
  59. public function getDkimSuccessRatio()
  60. {
  61. return $this->dkimSuccessRatio;
  62. }
  63. public function setDmarcSuccessRatio($dmarcSuccessRatio)
  64. {
  65. $this->dmarcSuccessRatio = $dmarcSuccessRatio;
  66. }
  67. public function getDmarcSuccessRatio()
  68. {
  69. return $this->dmarcSuccessRatio;
  70. }
  71. /**
  72. * @param string
  73. */
  74. public function setDomainReputation($domainReputation)
  75. {
  76. $this->domainReputation = $domainReputation;
  77. }
  78. /**
  79. * @return string
  80. */
  81. public function getDomainReputation()
  82. {
  83. return $this->domainReputation;
  84. }
  85. public function setInboundEncryptionRatio($inboundEncryptionRatio)
  86. {
  87. $this->inboundEncryptionRatio = $inboundEncryptionRatio;
  88. }
  89. public function getInboundEncryptionRatio()
  90. {
  91. return $this->inboundEncryptionRatio;
  92. }
  93. /**
  94. * @param IpReputation[]
  95. */
  96. public function setIpReputations($ipReputations)
  97. {
  98. $this->ipReputations = $ipReputations;
  99. }
  100. /**
  101. * @return IpReputation[]
  102. */
  103. public function getIpReputations()
  104. {
  105. return $this->ipReputations;
  106. }
  107. /**
  108. * @param string
  109. */
  110. public function setName($name)
  111. {
  112. $this->name = $name;
  113. }
  114. /**
  115. * @return string
  116. */
  117. public function getName()
  118. {
  119. return $this->name;
  120. }
  121. public function setOutboundEncryptionRatio($outboundEncryptionRatio)
  122. {
  123. $this->outboundEncryptionRatio = $outboundEncryptionRatio;
  124. }
  125. public function getOutboundEncryptionRatio()
  126. {
  127. return $this->outboundEncryptionRatio;
  128. }
  129. /**
  130. * @param FeedbackLoop[]
  131. */
  132. public function setSpammyFeedbackLoops($spammyFeedbackLoops)
  133. {
  134. $this->spammyFeedbackLoops = $spammyFeedbackLoops;
  135. }
  136. /**
  137. * @return FeedbackLoop[]
  138. */
  139. public function getSpammyFeedbackLoops()
  140. {
  141. return $this->spammyFeedbackLoops;
  142. }
  143. public function setSpfSuccessRatio($spfSuccessRatio)
  144. {
  145. $this->spfSuccessRatio = $spfSuccessRatio;
  146. }
  147. public function getSpfSuccessRatio()
  148. {
  149. return $this->spfSuccessRatio;
  150. }
  151. public function setUserReportedSpamRatio($userReportedSpamRatio)
  152. {
  153. $this->userReportedSpamRatio = $userReportedSpamRatio;
  154. }
  155. public function getUserReportedSpamRatio()
  156. {
  157. return $this->userReportedSpamRatio;
  158. }
  159. }
  160. // Adding a class alias for backwards compatibility with the previous class name.
  161. class_alias(TrafficStats::class, 'Google_Service_PostmasterTools_TrafficStats');