Skip to main content

AvailabilityClient

Represents a client for interacting with the Bloock Availability service.

  • Full name: \Bloock\Client\AvailabilityClient

Properties

bridge

private $bridge

config

private $config

Methods

__construct

Creates a new instance of the AvailabilityClient with the provided configuration.

public __construct(\Bloock\ConfigData|null $config = null): mixed

Parameters:

ParameterTypeDescription
$config\Bloock\ConfigData|null

publish

Publishes a Bloock record to the Availability service using the specified publisher.

public publish(\Bloock\Entity\Record\Record $record, \Bloock\Entity\Availability\Publisher $publisher): string

Parameters:

ParameterTypeDescription
$record\Bloock\Entity\Record\Record
$publisher\Bloock\Entity\Availability\Publisher

Throws:


retrieve

Gets a Bloock record from the Availability service using the specified loader.

public retrieve(\Bloock\Entity\Availability\Loader $loader): \Bloock\Entity\Record\Record

Parameters:

ParameterTypeDescription
$loader\Bloock\Entity\Availability\Loader

Throws:



Automatically generated on 2024-04-02