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 GrafeasV1beta1VulnerabilityDetails extends \Google\Collection
21{
22  protected $collection_key = 'relatedUrls';
23  public $cvssScore;
24  public $effectiveSeverity;
25  public $longDescription;
26  protected $packageIssueType = PackageIssue::class;
27  protected $packageIssueDataType = 'array';
28  protected $relatedUrlsType = RelatedUrl::class;
29  protected $relatedUrlsDataType = 'array';
30  public $severity;
31  public $shortDescription;
32  public $type;
33
34  public function setCvssScore($cvssScore)
35  {
36    $this->cvssScore = $cvssScore;
37  }
38  public function getCvssScore()
39  {
40    return $this->cvssScore;
41  }
42  public function setEffectiveSeverity($effectiveSeverity)
43  {
44    $this->effectiveSeverity = $effectiveSeverity;
45  }
46  public function getEffectiveSeverity()
47  {
48    return $this->effectiveSeverity;
49  }
50  public function setLongDescription($longDescription)
51  {
52    $this->longDescription = $longDescription;
53  }
54  public function getLongDescription()
55  {
56    return $this->longDescription;
57  }
58  /**
59   * @param PackageIssue[]
60   */
61  public function setPackageIssue($packageIssue)
62  {
63    $this->packageIssue = $packageIssue;
64  }
65  /**
66   * @return PackageIssue[]
67   */
68  public function getPackageIssue()
69  {
70    return $this->packageIssue;
71  }
72  /**
73   * @param RelatedUrl[]
74   */
75  public function setRelatedUrls($relatedUrls)
76  {
77    $this->relatedUrls = $relatedUrls;
78  }
79  /**
80   * @return RelatedUrl[]
81   */
82  public function getRelatedUrls()
83  {
84    return $this->relatedUrls;
85  }
86  public function setSeverity($severity)
87  {
88    $this->severity = $severity;
89  }
90  public function getSeverity()
91  {
92    return $this->severity;
93  }
94  public function setShortDescription($shortDescription)
95  {
96    $this->shortDescription = $shortDescription;
97  }
98  public function getShortDescription()
99  {
100    return $this->shortDescription;
101  }
102  public function setType($type)
103  {
104    $this->type = $type;
105  }
106  public function getType()
107  {
108    return $this->type;
109  }
110}
111
112// Adding a class alias for backwards compatibility with the previous class name.
113class_alias(GrafeasV1beta1VulnerabilityDetails::class, 'Google_Service_ContainerAnalysis_GrafeasV1beta1VulnerabilityDetails');
114