HeaderBlock
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
Details
at line 33
__construct(string $text, Closure|null $callback = null)
Create a new header block instance.
at line 45
HeaderBlock
id(string $id)
Set the block identifier.
at line 55
array
toArray()
Get the instance as an array.