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