# Grafeas V1 Client - Class VulnerabilityAttestation (1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.2 1.2.2 1.1.3 1.0.0 0.10.3 0.9.0 0.8.3 0.7.1 0.6.0 0.5.0 0.4.4 Reference documentation and code samples for the Grafeas V1 Client class VulnerabilityAttestation.

The status of an vulnerability attestation generation.

Generated from protobuf message `grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation`

## Namespace

Grafeas \\ V1 \\ DiscoveryOccurrence

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ last_attempt_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The last time we attempted to generate an attestation. |
| `↳ state` | `int` The success/failure state of the latest attestation attempt. |
| `↳ error` | `string` If failure, the error reason for why the attestation generation failed. |

### getLastAttemptTime

The last time we attempted to generate an attestation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasLastAttemptTime

### clearLastAttemptTime

### setLastAttemptTime

The last time we attempted to generate an attestation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getState

The success/failure state of the latest attestation attempt.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setState

The success/failure state of the latest attestation attempt.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getError

If failure, the error reason for why the attestation generation failed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setError

If failure, the error reason for why the attestation generation failed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |