Skip to main content

CredentialSchema

Represents the schema information for a credential, including its ID and type.

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

Properties

id

private string $id

type

private string $type

Methods

__construct

Constructs an CredentialSchema object with the specified parameters.

public __construct(string $id, string $type): mixed

Parameters:

ParameterTypeDescription
$idstring
$typestring

fromProto

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

Parameters:

ParameterTypeDescription
$res\Bloock\CredentialSchema

getId

Gets the id of the credential.

public getId(): string

getType

Gets the type of the credential.

public getType(): string

toProto

public toProto(): \Bloock\CredentialSchema


Automatically generated on 2024-04-02