Skip to main content

CredentialReceipt

Represents a receipt for a credential, including the credential itself, its ID, and type.

  • Full name: \Bloock\Entity\Identity\CredentialReceipt

Properties

credential

private \Bloock\Entity\Identity\Credential $credential

credentialId

private string $credentialId

credentialType

private string $credentialType

Methods

__construct

Constructs an CredentialReceipt object with the specified parameters.

public __construct(\Bloock\Entity\Identity\Credential $credential, string $credentialId, string $credentialType): mixed

Parameters:

ParameterTypeDescription
$credential\Bloock\Entity\Identity\Credential
$credentialIdstring
$credentialTypestring

fromProto

public static fromProto(\Bloock\CredentialReceipt $res): \Bloock\Entity\Identity\CredentialReceipt
  • This method is static.

Parameters:

ParameterTypeDescription
$res\Bloock\CredentialReceipt

getCredential

Gets the credential object.

public getCredential(): \Bloock\Entity\Identity\Credential

getCredentialId

Gets the ID associated with the credential.

public getCredentialId(): string

getCredentialType

Gets the type of the credential.

public getCredentialType(): string

toProto

public toProto(): \Bloock\CredentialReceipt


Automatically generated on 2024-04-02