[e3d4e0a] | 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\PagespeedInsights;
|
---|
| 19 |
|
---|
| 20 | class 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 $entitiesType = LhrEntity::class;
|
---|
| 32 | protected $entitiesDataType = 'array';
|
---|
| 33 | protected $environmentType = Environment::class;
|
---|
| 34 | protected $environmentDataType = '';
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $fetchTime;
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $finalDisplayedUrl;
|
---|
| 43 | /**
|
---|
| 44 | * @var string
|
---|
| 45 | */
|
---|
| 46 | public $finalUrl;
|
---|
| 47 | /**
|
---|
| 48 | * @var array
|
---|
| 49 | */
|
---|
| 50 | public $fullPageScreenshot;
|
---|
| 51 | protected $i18nType = I18n::class;
|
---|
| 52 | protected $i18nDataType = '';
|
---|
| 53 | /**
|
---|
| 54 | * @var string
|
---|
| 55 | */
|
---|
| 56 | public $lighthouseVersion;
|
---|
| 57 | /**
|
---|
| 58 | * @var string
|
---|
| 59 | */
|
---|
| 60 | public $mainDocumentUrl;
|
---|
| 61 | /**
|
---|
| 62 | * @var string
|
---|
| 63 | */
|
---|
| 64 | public $requestedUrl;
|
---|
| 65 | /**
|
---|
| 66 | * @var array[]
|
---|
| 67 | */
|
---|
| 68 | public $runWarnings;
|
---|
| 69 | protected $runtimeErrorType = RuntimeError::class;
|
---|
| 70 | protected $runtimeErrorDataType = '';
|
---|
| 71 | protected $stackPacksType = StackPack::class;
|
---|
| 72 | protected $stackPacksDataType = 'array';
|
---|
| 73 | protected $timingType = Timing::class;
|
---|
| 74 | protected $timingDataType = '';
|
---|
| 75 | /**
|
---|
| 76 | * @var string
|
---|
| 77 | */
|
---|
| 78 | public $userAgent;
|
---|
| 79 |
|
---|
| 80 | /**
|
---|
| 81 | * @param LighthouseAuditResultV5[]
|
---|
| 82 | */
|
---|
| 83 | public function setAudits($audits)
|
---|
| 84 | {
|
---|
| 85 | $this->audits = $audits;
|
---|
| 86 | }
|
---|
| 87 | /**
|
---|
| 88 | * @return LighthouseAuditResultV5[]
|
---|
| 89 | */
|
---|
| 90 | public function getAudits()
|
---|
| 91 | {
|
---|
| 92 | return $this->audits;
|
---|
| 93 | }
|
---|
| 94 | /**
|
---|
| 95 | * @param Categories
|
---|
| 96 | */
|
---|
| 97 | public function setCategories(Categories $categories)
|
---|
| 98 | {
|
---|
| 99 | $this->categories = $categories;
|
---|
| 100 | }
|
---|
| 101 | /**
|
---|
| 102 | * @return Categories
|
---|
| 103 | */
|
---|
| 104 | public function getCategories()
|
---|
| 105 | {
|
---|
| 106 | return $this->categories;
|
---|
| 107 | }
|
---|
| 108 | /**
|
---|
| 109 | * @param CategoryGroupV5[]
|
---|
| 110 | */
|
---|
| 111 | public function setCategoryGroups($categoryGroups)
|
---|
| 112 | {
|
---|
| 113 | $this->categoryGroups = $categoryGroups;
|
---|
| 114 | }
|
---|
| 115 | /**
|
---|
| 116 | * @return CategoryGroupV5[]
|
---|
| 117 | */
|
---|
| 118 | public function getCategoryGroups()
|
---|
| 119 | {
|
---|
| 120 | return $this->categoryGroups;
|
---|
| 121 | }
|
---|
| 122 | /**
|
---|
| 123 | * @param ConfigSettings
|
---|
| 124 | */
|
---|
| 125 | public function setConfigSettings(ConfigSettings $configSettings)
|
---|
| 126 | {
|
---|
| 127 | $this->configSettings = $configSettings;
|
---|
| 128 | }
|
---|
| 129 | /**
|
---|
| 130 | * @return ConfigSettings
|
---|
| 131 | */
|
---|
| 132 | public function getConfigSettings()
|
---|
| 133 | {
|
---|
| 134 | return $this->configSettings;
|
---|
| 135 | }
|
---|
| 136 | /**
|
---|
| 137 | * @param LhrEntity[]
|
---|
| 138 | */
|
---|
| 139 | public function setEntities($entities)
|
---|
| 140 | {
|
---|
| 141 | $this->entities = $entities;
|
---|
| 142 | }
|
---|
| 143 | /**
|
---|
| 144 | * @return LhrEntity[]
|
---|
| 145 | */
|
---|
| 146 | public function getEntities()
|
---|
| 147 | {
|
---|
| 148 | return $this->entities;
|
---|
| 149 | }
|
---|
| 150 | /**
|
---|
| 151 | * @param Environment
|
---|
| 152 | */
|
---|
| 153 | public function setEnvironment(Environment $environment)
|
---|
| 154 | {
|
---|
| 155 | $this->environment = $environment;
|
---|
| 156 | }
|
---|
| 157 | /**
|
---|
| 158 | * @return Environment
|
---|
| 159 | */
|
---|
| 160 | public function getEnvironment()
|
---|
| 161 | {
|
---|
| 162 | return $this->environment;
|
---|
| 163 | }
|
---|
| 164 | /**
|
---|
| 165 | * @param string
|
---|
| 166 | */
|
---|
| 167 | public function setFetchTime($fetchTime)
|
---|
| 168 | {
|
---|
| 169 | $this->fetchTime = $fetchTime;
|
---|
| 170 | }
|
---|
| 171 | /**
|
---|
| 172 | * @return string
|
---|
| 173 | */
|
---|
| 174 | public function getFetchTime()
|
---|
| 175 | {
|
---|
| 176 | return $this->fetchTime;
|
---|
| 177 | }
|
---|
| 178 | /**
|
---|
| 179 | * @param string
|
---|
| 180 | */
|
---|
| 181 | public function setFinalDisplayedUrl($finalDisplayedUrl)
|
---|
| 182 | {
|
---|
| 183 | $this->finalDisplayedUrl = $finalDisplayedUrl;
|
---|
| 184 | }
|
---|
| 185 | /**
|
---|
| 186 | * @return string
|
---|
| 187 | */
|
---|
| 188 | public function getFinalDisplayedUrl()
|
---|
| 189 | {
|
---|
| 190 | return $this->finalDisplayedUrl;
|
---|
| 191 | }
|
---|
| 192 | /**
|
---|
| 193 | * @param string
|
---|
| 194 | */
|
---|
| 195 | public function setFinalUrl($finalUrl)
|
---|
| 196 | {
|
---|
| 197 | $this->finalUrl = $finalUrl;
|
---|
| 198 | }
|
---|
| 199 | /**
|
---|
| 200 | * @return string
|
---|
| 201 | */
|
---|
| 202 | public function getFinalUrl()
|
---|
| 203 | {
|
---|
| 204 | return $this->finalUrl;
|
---|
| 205 | }
|
---|
| 206 | /**
|
---|
| 207 | * @param array
|
---|
| 208 | */
|
---|
| 209 | public function setFullPageScreenshot($fullPageScreenshot)
|
---|
| 210 | {
|
---|
| 211 | $this->fullPageScreenshot = $fullPageScreenshot;
|
---|
| 212 | }
|
---|
| 213 | /**
|
---|
| 214 | * @return array
|
---|
| 215 | */
|
---|
| 216 | public function getFullPageScreenshot()
|
---|
| 217 | {
|
---|
| 218 | return $this->fullPageScreenshot;
|
---|
| 219 | }
|
---|
| 220 | /**
|
---|
| 221 | * @param I18n
|
---|
| 222 | */
|
---|
| 223 | public function setI18n(I18n $i18n)
|
---|
| 224 | {
|
---|
| 225 | $this->i18n = $i18n;
|
---|
| 226 | }
|
---|
| 227 | /**
|
---|
| 228 | * @return I18n
|
---|
| 229 | */
|
---|
| 230 | public function getI18n()
|
---|
| 231 | {
|
---|
| 232 | return $this->i18n;
|
---|
| 233 | }
|
---|
| 234 | /**
|
---|
| 235 | * @param string
|
---|
| 236 | */
|
---|
| 237 | public function setLighthouseVersion($lighthouseVersion)
|
---|
| 238 | {
|
---|
| 239 | $this->lighthouseVersion = $lighthouseVersion;
|
---|
| 240 | }
|
---|
| 241 | /**
|
---|
| 242 | * @return string
|
---|
| 243 | */
|
---|
| 244 | public function getLighthouseVersion()
|
---|
| 245 | {
|
---|
| 246 | return $this->lighthouseVersion;
|
---|
| 247 | }
|
---|
| 248 | /**
|
---|
| 249 | * @param string
|
---|
| 250 | */
|
---|
| 251 | public function setMainDocumentUrl($mainDocumentUrl)
|
---|
| 252 | {
|
---|
| 253 | $this->mainDocumentUrl = $mainDocumentUrl;
|
---|
| 254 | }
|
---|
| 255 | /**
|
---|
| 256 | * @return string
|
---|
| 257 | */
|
---|
| 258 | public function getMainDocumentUrl()
|
---|
| 259 | {
|
---|
| 260 | return $this->mainDocumentUrl;
|
---|
| 261 | }
|
---|
| 262 | /**
|
---|
| 263 | * @param string
|
---|
| 264 | */
|
---|
| 265 | public function setRequestedUrl($requestedUrl)
|
---|
| 266 | {
|
---|
| 267 | $this->requestedUrl = $requestedUrl;
|
---|
| 268 | }
|
---|
| 269 | /**
|
---|
| 270 | * @return string
|
---|
| 271 | */
|
---|
| 272 | public function getRequestedUrl()
|
---|
| 273 | {
|
---|
| 274 | return $this->requestedUrl;
|
---|
| 275 | }
|
---|
| 276 | /**
|
---|
| 277 | * @param array[]
|
---|
| 278 | */
|
---|
| 279 | public function setRunWarnings($runWarnings)
|
---|
| 280 | {
|
---|
| 281 | $this->runWarnings = $runWarnings;
|
---|
| 282 | }
|
---|
| 283 | /**
|
---|
| 284 | * @return array[]
|
---|
| 285 | */
|
---|
| 286 | public function getRunWarnings()
|
---|
| 287 | {
|
---|
| 288 | return $this->runWarnings;
|
---|
| 289 | }
|
---|
| 290 | /**
|
---|
| 291 | * @param RuntimeError
|
---|
| 292 | */
|
---|
| 293 | public function setRuntimeError(RuntimeError $runtimeError)
|
---|
| 294 | {
|
---|
| 295 | $this->runtimeError = $runtimeError;
|
---|
| 296 | }
|
---|
| 297 | /**
|
---|
| 298 | * @return RuntimeError
|
---|
| 299 | */
|
---|
| 300 | public function getRuntimeError()
|
---|
| 301 | {
|
---|
| 302 | return $this->runtimeError;
|
---|
| 303 | }
|
---|
| 304 | /**
|
---|
| 305 | * @param StackPack[]
|
---|
| 306 | */
|
---|
| 307 | public function setStackPacks($stackPacks)
|
---|
| 308 | {
|
---|
| 309 | $this->stackPacks = $stackPacks;
|
---|
| 310 | }
|
---|
| 311 | /**
|
---|
| 312 | * @return StackPack[]
|
---|
| 313 | */
|
---|
| 314 | public function getStackPacks()
|
---|
| 315 | {
|
---|
| 316 | return $this->stackPacks;
|
---|
| 317 | }
|
---|
| 318 | /**
|
---|
| 319 | * @param Timing
|
---|
| 320 | */
|
---|
| 321 | public function setTiming(Timing $timing)
|
---|
| 322 | {
|
---|
| 323 | $this->timing = $timing;
|
---|
| 324 | }
|
---|
| 325 | /**
|
---|
| 326 | * @return Timing
|
---|
| 327 | */
|
---|
| 328 | public function getTiming()
|
---|
| 329 | {
|
---|
| 330 | return $this->timing;
|
---|
| 331 | }
|
---|
| 332 | /**
|
---|
| 333 | * @param string
|
---|
| 334 | */
|
---|
| 335 | public function setUserAgent($userAgent)
|
---|
| 336 | {
|
---|
| 337 | $this->userAgent = $userAgent;
|
---|
| 338 | }
|
---|
| 339 | /**
|
---|
| 340 | * @return string
|
---|
| 341 | */
|
---|
| 342 | public function getUserAgent()
|
---|
| 343 | {
|
---|
| 344 | return $this->userAgent;
|
---|
| 345 | }
|
---|
| 346 | }
|
---|
| 347 |
|
---|
| 348 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 349 | class_alias(LighthouseResultV5::class, 'Google_Service_PagespeedInsights_LighthouseResultV5');
|
---|