class HeaderBlock implements BlockContract

Properties

protected string|null $blockId

A string acting as a unique identifier for a block.

protected PlainTextOnlyTextObject $text

The text for the block, in the form of a plain_text text object.

Methods

__construct(string $text, Closure|null $callback = null)

Create a new header block instance.

id(string $id)

Set the block identifier.

array
toArray()

Get the instance as an array.

Details

at line 33
__construct(string $text, Closure|null $callback = null)

Create a new header block instance.

Parameters

string $text
Closure|null $callback

at line 45
HeaderBlock id(string $id)

Set the block identifier.

Parameters

string $id

Return Value

HeaderBlock

at line 55
array toArray()

Get the instance as an array.

Return Value

array