SlackAttachmentField
in package
Table of Contents
- $content : string
- The content of the attachment field.
- $short : bool
- Whether the content is short.
- $title : string
- The title field of the attachment field.
- content() : $this
- Set the content of the field.
- long() : $this
- Indicates that the content should not be displayed side-by-side with other fields.
- title() : $this
- Set the title of the field.
- toArray() : array<string|int, mixed>
- Get the array representation of the attachment field.
Properties
$content
The content of the attachment field.
protected
string
$content
$short
Whether the content is short.
protected
bool
$short
= true
$title
The title field of the attachment field.
protected
string
$title
Methods
content()
Set the content of the field.
public
content(string $content) : $this
Parameters
- $content : string
Return values
$this —long()
Indicates that the content should not be displayed side-by-side with other fields.
public
long() : $this
Return values
$this —title()
Set the title of the field.
public
title(string $title) : $this
Parameters
- $title : string
Return values
$this —toArray()
Get the array representation of the attachment field.
public
toArray() : array<string|int, mixed>