[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\OnDemandScanning;
|
---|
| 19 |
|
---|
| 20 | class PackageData extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'patchedCve';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $architecture;
|
---|
| 27 | protected $binarySourceInfoType = BinarySourceInfo::class;
|
---|
| 28 | protected $binarySourceInfoDataType = 'array';
|
---|
| 29 | protected $binaryVersionType = PackageVersion::class;
|
---|
| 30 | protected $binaryVersionDataType = '';
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $cpeUri;
|
---|
| 35 | protected $dependencyChainType = LanguagePackageDependency::class;
|
---|
| 36 | protected $dependencyChainDataType = 'array';
|
---|
| 37 | protected $fileLocationType = FileLocation::class;
|
---|
| 38 | protected $fileLocationDataType = 'array';
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $hashDigest;
|
---|
| 43 | /**
|
---|
| 44 | * @var string[]
|
---|
| 45 | */
|
---|
| 46 | public $licenses;
|
---|
| 47 | protected $maintainerType = Maintainer::class;
|
---|
| 48 | protected $maintainerDataType = '';
|
---|
| 49 | /**
|
---|
| 50 | * @var string
|
---|
| 51 | */
|
---|
| 52 | public $os;
|
---|
| 53 | /**
|
---|
| 54 | * @var string
|
---|
| 55 | */
|
---|
| 56 | public $osVersion;
|
---|
| 57 | /**
|
---|
| 58 | * @var string
|
---|
| 59 | */
|
---|
| 60 | public $package;
|
---|
| 61 | /**
|
---|
| 62 | * @var string
|
---|
| 63 | */
|
---|
| 64 | public $packageType;
|
---|
| 65 | /**
|
---|
| 66 | * @var string[]
|
---|
| 67 | */
|
---|
| 68 | public $patchedCve;
|
---|
| 69 | protected $sourceVersionType = PackageVersion::class;
|
---|
| 70 | protected $sourceVersionDataType = '';
|
---|
| 71 | /**
|
---|
| 72 | * @var string
|
---|
| 73 | */
|
---|
| 74 | public $unused;
|
---|
| 75 | /**
|
---|
| 76 | * @var string
|
---|
| 77 | */
|
---|
| 78 | public $version;
|
---|
| 79 |
|
---|
| 80 | /**
|
---|
| 81 | * @param string
|
---|
| 82 | */
|
---|
| 83 | public function setArchitecture($architecture)
|
---|
| 84 | {
|
---|
| 85 | $this->architecture = $architecture;
|
---|
| 86 | }
|
---|
| 87 | /**
|
---|
| 88 | * @return string
|
---|
| 89 | */
|
---|
| 90 | public function getArchitecture()
|
---|
| 91 | {
|
---|
| 92 | return $this->architecture;
|
---|
| 93 | }
|
---|
| 94 | /**
|
---|
| 95 | * @param BinarySourceInfo[]
|
---|
| 96 | */
|
---|
| 97 | public function setBinarySourceInfo($binarySourceInfo)
|
---|
| 98 | {
|
---|
| 99 | $this->binarySourceInfo = $binarySourceInfo;
|
---|
| 100 | }
|
---|
| 101 | /**
|
---|
| 102 | * @return BinarySourceInfo[]
|
---|
| 103 | */
|
---|
| 104 | public function getBinarySourceInfo()
|
---|
| 105 | {
|
---|
| 106 | return $this->binarySourceInfo;
|
---|
| 107 | }
|
---|
| 108 | /**
|
---|
| 109 | * @param PackageVersion
|
---|
| 110 | */
|
---|
| 111 | public function setBinaryVersion(PackageVersion $binaryVersion)
|
---|
| 112 | {
|
---|
| 113 | $this->binaryVersion = $binaryVersion;
|
---|
| 114 | }
|
---|
| 115 | /**
|
---|
| 116 | * @return PackageVersion
|
---|
| 117 | */
|
---|
| 118 | public function getBinaryVersion()
|
---|
| 119 | {
|
---|
| 120 | return $this->binaryVersion;
|
---|
| 121 | }
|
---|
| 122 | /**
|
---|
| 123 | * @param string
|
---|
| 124 | */
|
---|
| 125 | public function setCpeUri($cpeUri)
|
---|
| 126 | {
|
---|
| 127 | $this->cpeUri = $cpeUri;
|
---|
| 128 | }
|
---|
| 129 | /**
|
---|
| 130 | * @return string
|
---|
| 131 | */
|
---|
| 132 | public function getCpeUri()
|
---|
| 133 | {
|
---|
| 134 | return $this->cpeUri;
|
---|
| 135 | }
|
---|
| 136 | /**
|
---|
| 137 | * @param LanguagePackageDependency[]
|
---|
| 138 | */
|
---|
| 139 | public function setDependencyChain($dependencyChain)
|
---|
| 140 | {
|
---|
| 141 | $this->dependencyChain = $dependencyChain;
|
---|
| 142 | }
|
---|
| 143 | /**
|
---|
| 144 | * @return LanguagePackageDependency[]
|
---|
| 145 | */
|
---|
| 146 | public function getDependencyChain()
|
---|
| 147 | {
|
---|
| 148 | return $this->dependencyChain;
|
---|
| 149 | }
|
---|
| 150 | /**
|
---|
| 151 | * @param FileLocation[]
|
---|
| 152 | */
|
---|
| 153 | public function setFileLocation($fileLocation)
|
---|
| 154 | {
|
---|
| 155 | $this->fileLocation = $fileLocation;
|
---|
| 156 | }
|
---|
| 157 | /**
|
---|
| 158 | * @return FileLocation[]
|
---|
| 159 | */
|
---|
| 160 | public function getFileLocation()
|
---|
| 161 | {
|
---|
| 162 | return $this->fileLocation;
|
---|
| 163 | }
|
---|
| 164 | /**
|
---|
| 165 | * @param string
|
---|
| 166 | */
|
---|
| 167 | public function setHashDigest($hashDigest)
|
---|
| 168 | {
|
---|
| 169 | $this->hashDigest = $hashDigest;
|
---|
| 170 | }
|
---|
| 171 | /**
|
---|
| 172 | * @return string
|
---|
| 173 | */
|
---|
| 174 | public function getHashDigest()
|
---|
| 175 | {
|
---|
| 176 | return $this->hashDigest;
|
---|
| 177 | }
|
---|
| 178 | /**
|
---|
| 179 | * @param string[]
|
---|
| 180 | */
|
---|
| 181 | public function setLicenses($licenses)
|
---|
| 182 | {
|
---|
| 183 | $this->licenses = $licenses;
|
---|
| 184 | }
|
---|
| 185 | /**
|
---|
| 186 | * @return string[]
|
---|
| 187 | */
|
---|
| 188 | public function getLicenses()
|
---|
| 189 | {
|
---|
| 190 | return $this->licenses;
|
---|
| 191 | }
|
---|
| 192 | /**
|
---|
| 193 | * @param Maintainer
|
---|
| 194 | */
|
---|
| 195 | public function setMaintainer(Maintainer $maintainer)
|
---|
| 196 | {
|
---|
| 197 | $this->maintainer = $maintainer;
|
---|
| 198 | }
|
---|
| 199 | /**
|
---|
| 200 | * @return Maintainer
|
---|
| 201 | */
|
---|
| 202 | public function getMaintainer()
|
---|
| 203 | {
|
---|
| 204 | return $this->maintainer;
|
---|
| 205 | }
|
---|
| 206 | /**
|
---|
| 207 | * @param string
|
---|
| 208 | */
|
---|
| 209 | public function setOs($os)
|
---|
| 210 | {
|
---|
| 211 | $this->os = $os;
|
---|
| 212 | }
|
---|
| 213 | /**
|
---|
| 214 | * @return string
|
---|
| 215 | */
|
---|
| 216 | public function getOs()
|
---|
| 217 | {
|
---|
| 218 | return $this->os;
|
---|
| 219 | }
|
---|
| 220 | /**
|
---|
| 221 | * @param string
|
---|
| 222 | */
|
---|
| 223 | public function setOsVersion($osVersion)
|
---|
| 224 | {
|
---|
| 225 | $this->osVersion = $osVersion;
|
---|
| 226 | }
|
---|
| 227 | /**
|
---|
| 228 | * @return string
|
---|
| 229 | */
|
---|
| 230 | public function getOsVersion()
|
---|
| 231 | {
|
---|
| 232 | return $this->osVersion;
|
---|
| 233 | }
|
---|
| 234 | /**
|
---|
| 235 | * @param string
|
---|
| 236 | */
|
---|
| 237 | public function setPackage($package)
|
---|
| 238 | {
|
---|
| 239 | $this->package = $package;
|
---|
| 240 | }
|
---|
| 241 | /**
|
---|
| 242 | * @return string
|
---|
| 243 | */
|
---|
| 244 | public function getPackage()
|
---|
| 245 | {
|
---|
| 246 | return $this->package;
|
---|
| 247 | }
|
---|
| 248 | /**
|
---|
| 249 | * @param string
|
---|
| 250 | */
|
---|
| 251 | public function setPackageType($packageType)
|
---|
| 252 | {
|
---|
| 253 | $this->packageType = $packageType;
|
---|
| 254 | }
|
---|
| 255 | /**
|
---|
| 256 | * @return string
|
---|
| 257 | */
|
---|
| 258 | public function getPackageType()
|
---|
| 259 | {
|
---|
| 260 | return $this->packageType;
|
---|
| 261 | }
|
---|
| 262 | /**
|
---|
| 263 | * @param string[]
|
---|
| 264 | */
|
---|
| 265 | public function setPatchedCve($patchedCve)
|
---|
| 266 | {
|
---|
| 267 | $this->patchedCve = $patchedCve;
|
---|
| 268 | }
|
---|
| 269 | /**
|
---|
| 270 | * @return string[]
|
---|
| 271 | */
|
---|
| 272 | public function getPatchedCve()
|
---|
| 273 | {
|
---|
| 274 | return $this->patchedCve;
|
---|
| 275 | }
|
---|
| 276 | /**
|
---|
| 277 | * @param PackageVersion
|
---|
| 278 | */
|
---|
| 279 | public function setSourceVersion(PackageVersion $sourceVersion)
|
---|
| 280 | {
|
---|
| 281 | $this->sourceVersion = $sourceVersion;
|
---|
| 282 | }
|
---|
| 283 | /**
|
---|
| 284 | * @return PackageVersion
|
---|
| 285 | */
|
---|
| 286 | public function getSourceVersion()
|
---|
| 287 | {
|
---|
| 288 | return $this->sourceVersion;
|
---|
| 289 | }
|
---|
| 290 | /**
|
---|
| 291 | * @param string
|
---|
| 292 | */
|
---|
| 293 | public function setUnused($unused)
|
---|
| 294 | {
|
---|
| 295 | $this->unused = $unused;
|
---|
| 296 | }
|
---|
| 297 | /**
|
---|
| 298 | * @return string
|
---|
| 299 | */
|
---|
| 300 | public function getUnused()
|
---|
| 301 | {
|
---|
| 302 | return $this->unused;
|
---|
| 303 | }
|
---|
| 304 | /**
|
---|
| 305 | * @param string
|
---|
| 306 | */
|
---|
| 307 | public function setVersion($version)
|
---|
| 308 | {
|
---|
| 309 | $this->version = $version;
|
---|
| 310 | }
|
---|
| 311 | /**
|
---|
| 312 | * @return string
|
---|
| 313 | */
|
---|
| 314 | public function getVersion()
|
---|
| 315 | {
|
---|
| 316 | return $this->version;
|
---|
| 317 | }
|
---|
| 318 | }
|
---|
| 319 |
|
---|
| 320 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 321 | class_alias(PackageData::class, 'Google_Service_OnDemandScanning_PackageData');
|
---|