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:
Parameter | Type | Description |
---|---|---|
$credential | \Bloock\Entity\Identity\Credential | |
$credentialId | string | |
$credentialType | string |
fromProto
public static fromProto(\Bloock\CredentialReceipt $res): \Bloock\Entity\Identity\CredentialReceipt
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$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