source: vendor/google/apiclient-services/src/ContainerAnalysis/Vulnerability.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 2.4 KB
Line 
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\ContainerAnalysis;
19
20class Vulnerability extends \Google\Collection
21{
22 protected $collection_key = 'windowsDetails';
23 public $cvssScore;
24 protected $cvssV3Type = CVSSv3::class;
25 protected $cvssV3DataType = '';
26 protected $detailsType = Detail::class;
27 protected $detailsDataType = 'array';
28 public $severity;
29 public $sourceUpdateTime;
30 protected $windowsDetailsType = WindowsDetail::class;
31 protected $windowsDetailsDataType = 'array';
32
33 public function setCvssScore($cvssScore)
34 {
35 $this->cvssScore = $cvssScore;
36 }
37 public function getCvssScore()
38 {
39 return $this->cvssScore;
40 }
41 /**
42 * @param CVSSv3
43 */
44 public function setCvssV3(CVSSv3 $cvssV3)
45 {
46 $this->cvssV3 = $cvssV3;
47 }
48 /**
49 * @return CVSSv3
50 */
51 public function getCvssV3()
52 {
53 return $this->cvssV3;
54 }
55 /**
56 * @param Detail[]
57 */
58 public function setDetails($details)
59 {
60 $this->details = $details;
61 }
62 /**
63 * @return Detail[]
64 */
65 public function getDetails()
66 {
67 return $this->details;
68 }
69 public function setSeverity($severity)
70 {
71 $this->severity = $severity;
72 }
73 public function getSeverity()
74 {
75 return $this->severity;
76 }
77 public function setSourceUpdateTime($sourceUpdateTime)
78 {
79 $this->sourceUpdateTime = $sourceUpdateTime;
80 }
81 public function getSourceUpdateTime()
82 {
83 return $this->sourceUpdateTime;
84 }
85 /**
86 * @param WindowsDetail[]
87 */
88 public function setWindowsDetails($windowsDetails)
89 {
90 $this->windowsDetails = $windowsDetails;
91 }
92 /**
93 * @return WindowsDetail[]
94 */
95 public function getWindowsDetails()
96 {
97 return $this->windowsDetails;
98 }
99}
100
101// Adding a class alias for backwards compatibility with the previous class name.
102class_alias(Vulnerability::class, 'Google_Service_ContainerAnalysis_Vulnerability');
Note: See TracBrowser for help on using the repository browser.