Skip to main content

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:

ParameterTypeDescription
$config\Bloock\ConfigData|null

fromRecord

Creates a RecordBuilder from an existing record.

public fromRecord(\Bloock\Entity\Record\Record $record): \Bloock\Client\RecordBuilder

Parameters:

ParameterTypeDescription
$record\Bloock\Entity\Record\Record

fromString

Creates a RecordBuilder from a string payload.

public fromString(string $str): \Bloock\Client\RecordBuilder

Parameters:

ParameterTypeDescription
$strstring

fromHex

Creates a RecordBuilder from a hexadecimal string payload.

public fromHex(string $hex): \Bloock\Client\RecordBuilder

Parameters:

ParameterTypeDescription
$hexstring

fromJson

Creates a RecordBuilder from a JSON string payload.

public fromJson(string $json): \Bloock\Client\RecordBuilder

Parameters:

ParameterTypeDescription
$jsonstring

fromFile

Creates a RecordBuilder from a byte slice representing a file.

public fromFile(array $file): \Bloock\Client\RecordBuilder

Parameters:

ParameterTypeDescription
$filearray

fromBytes

Creates a RecordBuilder from a byte slice payload.

public fromBytes(array $bytes): \Bloock\Client\RecordBuilder

Parameters:

ParameterTypeDescription
$bytesarray

fromLoader

Creates a RecordBuilder from a data loader.

public fromLoader(\Bloock\Entity\Availability\Loader $loader): \Bloock\Client\RecordBuilder

Parameters:

ParameterTypeDescription
$loader\Bloock\Entity\Availability\Loader


Automatically generated on 2024-04-02