Skip to content
docsv0.1.0

ProducerIdentity

Identity of the producer that emitted the evidence for a gate (e.g.: a CI script, a static analysis tool, a human verifier).

ProducerIdentity::__construct()

public function __construct(string $kind, string $id, ?string $version):

Parameters

Parameters of __construct()
NameTypeDescription
$kindstringType of producer (e.g.: "ci-check", "phpstan", "human")
$idstringIdentifier of the producer (e.g.: "scripts/ci-check.php")
$version?stringVersion of the producer, if applicable

ProducerIdentity::toArray()

public function toArray(): array

Serializes the identity to an array for storage or transmission.