# Grafeas V1 Client - Class SBOMReferenceOccurrence (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 SBOMReferenceOccurrence.

The occurrence representing an SBOM reference as applied to a specific
resource. The occurrence follows the DSSE specification. See
<https://github.com/secure-systems-lab/dsse/blob/master/envelope.md> for more
details.

Generated from protobuf message `grafeas.v1.SBOMReferenceOccurrence`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ payload` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SbomReferenceIntotoPayload` The actual payload that contains the SBOM reference data. |
| `↳ payload_type` | `string` The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'. |
| `↳ signatures` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.EnvelopeSignature>` The signatures over the payload. |

### getPayload

The actual payload that contains the SBOM reference data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SbomReferenceIntotoPayload|null` |   |

### hasPayload

### clearPayload

### setPayload

The actual payload that contains the SBOM reference data.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SbomReferenceIntotoPayload` |

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

### getPayloadType

The kind of payload that SbomReferenceIntotoPayload takes. Since it's in
the intoto format, this value is expected to be
'application/vnd.in-toto+json'.

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

### setPayloadType

The kind of payload that SbomReferenceIntotoPayload takes. Since it's in
the intoto format, this value is expected to be
'application/vnd.in-toto+json'.

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

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

### getSignatures

The signatures over the payload.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.EnvelopeSignature>` |   |

### setSignatures

The signatures over the payload.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.EnvelopeSignature>` |

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