class SlackAttachmentField

Properties

protected string|null $title

The title field of the attachment field.

protected string|null $content

The content of the attachment field.

protected bool $short

Whether the content is short.

Methods

title(string $title)

Set the title of the field.

content(string $content)

Set the content of the field.

long()

Indicates that the content should not be displayed side-by-side with other fields.

array
toArray()

Get the array representation of the attachment field.

Details

at line 27
SlackAttachmentField title(string $title)

Set the title of the field.

Parameters

string $title

Return Value

SlackAttachmentField

at line 37
SlackAttachmentField content(string $content)

Set the content of the field.

Parameters

string $content

Return Value

SlackAttachmentField

at line 47
SlackAttachmentField long()

Indicates that the content should not be displayed side-by-side with other fields.

Return Value

SlackAttachmentField

at line 57
array toArray()

Get the array representation of the attachment field.

Return Value

array