Schema
Represents a schema with its attributes.
- Full name:
\Bloock\Entity\Identity\Schema
Properties
cid
private string $cid
cidJsonLd
private string $cidJsonLd
schemaType
private string $schemaType
json
private string $json
Methods
__construct
Constructs a Schema object with the specified parameters.
public __construct(string $cid, string $cidJsonLd, string $schemaType, string $json): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$cid | string | |
$cidJsonLd | string | |
$schemaType | string | |
$json | string |
fromProto
public static fromProto(\Bloock\Schema $res): \Bloock\Entity\Identity\Schema
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$res | \Bloock\Schema |
getCid
Gets the cid of the schema.
public getCid(): string
getCidJsonLd
Gets de cid json-ld of the schema.
public getCidJsonLd(): string
getSchemaType
Gets the schema type of the schema.
public getSchemaType(): string
toProto
public toProto(): \Bloock\Schema
getJson
Gets the json representation of the schema.
public getJson(): string
Automatically generated on 2024-04-02