Skip to content

Commit 79f6c22

Browse files
1 parent 1f7c936 commit 79f6c22

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/ContainerAnalysis/Occurrence.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ class Occurrence extends \Google\Model
7575
* This represents a secret.
7676
*/
7777
public const KIND_SECRET = 'SECRET';
78+
/**
79+
* The time this advisory was published by the source.
80+
*
81+
* @var string
82+
*/
83+
public $advisoryPublishTime;
7884
protected $attestationType = AttestationOccurrence::class;
7985
protected $attestationDataType = '';
8086
protected $buildType = BuildOccurrence::class;
@@ -150,6 +156,22 @@ class Occurrence extends \Google\Model
150156
protected $vulnerabilityType = VulnerabilityOccurrence::class;
151157
protected $vulnerabilityDataType = '';
152158

159+
/**
160+
* The time this advisory was published by the source.
161+
*
162+
* @param string $advisoryPublishTime
163+
*/
164+
public function setAdvisoryPublishTime($advisoryPublishTime)
165+
{
166+
$this->advisoryPublishTime = $advisoryPublishTime;
167+
}
168+
/**
169+
* @return string
170+
*/
171+
public function getAdvisoryPublishTime()
172+
{
173+
return $this->advisoryPublishTime;
174+
}
153175
/**
154176
* Describes an attestation of an artifact.
155177
*

0 commit comments

Comments
 (0)