Grafeas V1 Client - Class InTotoStatement (1.1.2)

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<Subject>
↳ predicate_type string

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

↳ provenance InTotoProvenance
↳ slsa_provenance SlsaProvenance
↳ slsa_provenance_zero_two 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
Google\Protobuf\Internal\RepeatedField

setSubject

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

Parameter
Name Description
var array<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
InTotoProvenance|null

hasProvenance

setProvenance

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

Parameter
Name Description
var InTotoProvenance
Returns
Type Description
$this

getSlsaProvenance

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

Returns
Type Description
SlsaProvenance|null

hasSlsaProvenance

setSlsaProvenance

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

Parameter
Name Description
var SlsaProvenance
Returns
Type Description
$this

getSlsaProvenanceZeroTwo

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

Returns
Type Description
SlsaProvenanceZeroTwo|null

hasSlsaProvenanceZeroTwo

setSlsaProvenanceZeroTwo

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

Parameter
Name Description
var SlsaProvenanceZeroTwo
Returns
Type Description
$this

getPredicate

Returns
Type Description
string