RecordClient
Provides functionality for creating records using various data sources and to interact with the Bloock Record service.
- Full name:
\Bloock\Client\RecordClient
Properties
bridge
private $bridge
config
private $config
Methods
__construct
Creates a new RecordClient with the provided configuration.
public __construct(\Bloock\ConfigData|null $config = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$config | \Bloock\ConfigData|null |
fromRecord
Creates a RecordBuilder from an existing record.
public fromRecord(\Bloock\Entity\Record\Record $record): \Bloock\Client\RecordBuilder
Parameters:
Parameter | Type | Description |
---|---|---|
$record | \Bloock\Entity\Record\Record |
fromString
Creates a RecordBuilder from a string payload.
public fromString(string $str): \Bloock\Client\RecordBuilder
Parameters:
Parameter | Type | Description |
---|---|---|
$str | string |
fromHex
Creates a RecordBuilder from a hexadecimal string payload.
public fromHex(string $hex): \Bloock\Client\RecordBuilder
Parameters:
Parameter | Type | Description |
---|---|---|
$hex | string |
fromJson
Creates a RecordBuilder from a JSON string payload.
public fromJson(string $json): \Bloock\Client\RecordBuilder
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string |
fromFile
Creates a RecordBuilder from a byte slice representing a file.
public fromFile(array $file): \Bloock\Client\RecordBuilder
Parameters:
Parameter | Type | Description |
---|---|---|
$file | array |
fromBytes
Creates a RecordBuilder from a byte slice payload.
public fromBytes(array $bytes): \Bloock\Client\RecordBuilder
Parameters:
Parameter | Type | Description |
---|---|---|
$bytes | array |
fromLoader
Creates a RecordBuilder from a data loader.
public fromLoader(\Bloock\Entity\Availability\Loader $loader): \Bloock\Client\RecordBuilder
Parameters:
Parameter | Type | Description |
---|---|---|
$loader | \Bloock\Entity\Availability\Loader |
Automatically generated on 2024-04-02