Overview
  • Namespace
  • Class

Namespaces

  • Slack
    • Message

Classes

  • Attachment
  • AttachmentBuilder
  • AttachmentField
  • Message
  • MessageBuilder

Class AttachmentField

A field inside a message attachment.

Slack\DataObject implements JsonSerializable
Extended by Slack\Message\AttachmentField
Namespace: Slack\Message
See: https://api.slack.com/docs/attachments
Located at Message/AttachmentField.php

Methods summary

public
# __construct( string $title, string $value, boolean $short = true )

Creates a new attachment field.

Creates a new attachment field.

Parameters

$title
A text heading for the field.
$value
The text value of the field.
$short
Indicates if the value can be displayed side-by-side with other values.
public string
# getTitle( )

Gets the text heading for the field.

Gets the text heading for the field.

Returns

string
The text heading for the field.
public string
# getValue( )

Gets the text value of the field.

Gets the text value of the field.

Returns

string
The text value of the field.
public boolean
# isShort( )

Checks if the value can be displayed side-by-side with other values.

Checks if the value can be displayed side-by-side with other values.

Returns

boolean
True if the value is short, otherwise false.

Methods inherited from Slack\DataObject

fromData(), jsonSerialize(), jsonUnserialize()

Properties summary

Properties inherited from Slack\DataObject

$data

API documentation generated by ApiGen