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 18namespace Google\Service\PagespeedInsights; 19 20class LighthouseResultV5 extends \Google\Collection 21{ 22 protected $collection_key = 'stackPacks'; 23 protected $auditsType = LighthouseAuditResultV5::class; 24 protected $auditsDataType = 'map'; 25 protected $categoriesType = Categories::class; 26 protected $categoriesDataType = ''; 27 protected $categoryGroupsType = CategoryGroupV5::class; 28 protected $categoryGroupsDataType = 'map'; 29 protected $configSettingsType = ConfigSettings::class; 30 protected $configSettingsDataType = ''; 31 protected $environmentType = Environment::class; 32 protected $environmentDataType = ''; 33 /** 34 * @var string 35 */ 36 public $fetchTime; 37 /** 38 * @var string 39 */ 40 public $finalUrl; 41 protected $i18nType = I18n::class; 42 protected $i18nDataType = ''; 43 /** 44 * @var string 45 */ 46 public $lighthouseVersion; 47 /** 48 * @var string 49 */ 50 public $requestedUrl; 51 /** 52 * @var array[] 53 */ 54 public $runWarnings; 55 protected $runtimeErrorType = RuntimeError::class; 56 protected $runtimeErrorDataType = ''; 57 protected $stackPacksType = StackPack::class; 58 protected $stackPacksDataType = 'array'; 59 protected $timingType = Timing::class; 60 protected $timingDataType = ''; 61 /** 62 * @var string 63 */ 64 public $userAgent; 65 66 /** 67 * @param LighthouseAuditResultV5[] 68 */ 69 public function setAudits($audits) 70 { 71 $this->audits = $audits; 72 } 73 /** 74 * @return LighthouseAuditResultV5[] 75 */ 76 public function getAudits() 77 { 78 return $this->audits; 79 } 80 /** 81 * @param Categories 82 */ 83 public function setCategories(Categories $categories) 84 { 85 $this->categories = $categories; 86 } 87 /** 88 * @return Categories 89 */ 90 public function getCategories() 91 { 92 return $this->categories; 93 } 94 /** 95 * @param CategoryGroupV5[] 96 */ 97 public function setCategoryGroups($categoryGroups) 98 { 99 $this->categoryGroups = $categoryGroups; 100 } 101 /** 102 * @return CategoryGroupV5[] 103 */ 104 public function getCategoryGroups() 105 { 106 return $this->categoryGroups; 107 } 108 /** 109 * @param ConfigSettings 110 */ 111 public function setConfigSettings(ConfigSettings $configSettings) 112 { 113 $this->configSettings = $configSettings; 114 } 115 /** 116 * @return ConfigSettings 117 */ 118 public function getConfigSettings() 119 { 120 return $this->configSettings; 121 } 122 /** 123 * @param Environment 124 */ 125 public function setEnvironment(Environment $environment) 126 { 127 $this->environment = $environment; 128 } 129 /** 130 * @return Environment 131 */ 132 public function getEnvironment() 133 { 134 return $this->environment; 135 } 136 /** 137 * @param string 138 */ 139 public function setFetchTime($fetchTime) 140 { 141 $this->fetchTime = $fetchTime; 142 } 143 /** 144 * @return string 145 */ 146 public function getFetchTime() 147 { 148 return $this->fetchTime; 149 } 150 /** 151 * @param string 152 */ 153 public function setFinalUrl($finalUrl) 154 { 155 $this->finalUrl = $finalUrl; 156 } 157 /** 158 * @return string 159 */ 160 public function getFinalUrl() 161 { 162 return $this->finalUrl; 163 } 164 /** 165 * @param I18n 166 */ 167 public function setI18n(I18n $i18n) 168 { 169 $this->i18n = $i18n; 170 } 171 /** 172 * @return I18n 173 */ 174 public function getI18n() 175 { 176 return $this->i18n; 177 } 178 /** 179 * @param string 180 */ 181 public function setLighthouseVersion($lighthouseVersion) 182 { 183 $this->lighthouseVersion = $lighthouseVersion; 184 } 185 /** 186 * @return string 187 */ 188 public function getLighthouseVersion() 189 { 190 return $this->lighthouseVersion; 191 } 192 /** 193 * @param string 194 */ 195 public function setRequestedUrl($requestedUrl) 196 { 197 $this->requestedUrl = $requestedUrl; 198 } 199 /** 200 * @return string 201 */ 202 public function getRequestedUrl() 203 { 204 return $this->requestedUrl; 205 } 206 /** 207 * @param array[] 208 */ 209 public function setRunWarnings($runWarnings) 210 { 211 $this->runWarnings = $runWarnings; 212 } 213 /** 214 * @return array[] 215 */ 216 public function getRunWarnings() 217 { 218 return $this->runWarnings; 219 } 220 /** 221 * @param RuntimeError 222 */ 223 public function setRuntimeError(RuntimeError $runtimeError) 224 { 225 $this->runtimeError = $runtimeError; 226 } 227 /** 228 * @return RuntimeError 229 */ 230 public function getRuntimeError() 231 { 232 return $this->runtimeError; 233 } 234 /** 235 * @param StackPack[] 236 */ 237 public function setStackPacks($stackPacks) 238 { 239 $this->stackPacks = $stackPacks; 240 } 241 /** 242 * @return StackPack[] 243 */ 244 public function getStackPacks() 245 { 246 return $this->stackPacks; 247 } 248 /** 249 * @param Timing 250 */ 251 public function setTiming(Timing $timing) 252 { 253 $this->timing = $timing; 254 } 255 /** 256 * @return Timing 257 */ 258 public function getTiming() 259 { 260 return $this->timing; 261 } 262 /** 263 * @param string 264 */ 265 public function setUserAgent($userAgent) 266 { 267 $this->userAgent = $userAgent; 268 } 269 /** 270 * @return string 271 */ 272 public function getUserAgent() 273 { 274 return $this->userAgent; 275 } 276} 277 278// Adding a class alias for backwards compatibility with the previous class name. 279class_alias(LighthouseResultV5::class, 'Google_Service_PagespeedInsights_LighthouseResultV5'); 280