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

Spec defined at
<https://github.com/in-toto/attestation/tree/main/spec#statement> The
serialized InTotoStatement will be stored as Envelope.payload.

Envelope.payloadType is always "application/vnd.in-toto+json".

Generated from protobuf message `grafeas.v1.InTotoStatement`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `string` Always `https://in-toto.io/Statement/v0.1`. |
| `↳ subject` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Subject>` |
| `↳ predicate_type` | `string` `https://slsa.dev/provenance/v0.1` for SlsaProvenance. |
| `↳ provenance` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.InTotoProvenance` |
| `↳ slsa_provenance` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SlsaProvenance` |
| `↳ slsa_provenance_zero_two` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SlsaProvenanceZeroTwo` |

### getType

Always `https://in-toto.io/Statement/v0.1`.

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

### setType

Always `https://in-toto.io/Statement/v0.1`.

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

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

### getSubject

Generated from protobuf field `repeated .grafeas.v1.Subject subject = 2;`

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

### setSubject

Generated from protobuf field `repeated .grafeas.v1.Subject subject = 2;`

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

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

### getPredicateType

`https://slsa.dev/provenance/v0.1` for SlsaProvenance.

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

### setPredicateType

`https://slsa.dev/provenance/v0.1` for SlsaProvenance.

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

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

### getProvenance

Generated from protobuf field `.grafeas.v1.InTotoProvenance provenance = 4;`

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

### hasProvenance

### setProvenance

Generated from protobuf field `.grafeas.v1.InTotoProvenance provenance = 4;`

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

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

### getSlsaProvenance

Generated from protobuf field `.grafeas.v1.SlsaProvenance slsa_provenance = 5;`

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

### hasSlsaProvenance

### setSlsaProvenance

Generated from protobuf field `.grafeas.v1.SlsaProvenance slsa_provenance = 5;`

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

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

### getSlsaProvenanceZeroTwo

Generated from protobuf field `.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;`

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

### hasSlsaProvenanceZeroTwo

### setSlsaProvenanceZeroTwo

Generated from protobuf field `.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;`

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

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

### getPredicate

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