SlackAttachment::fields()

$this fields(array $fields) Set the fields of the attachment. Parameters array $fields Return Value $this

SlackAttachment::content()

$this content(string $content) Set the content (text) of the attachment. Parameters string $content Return Value $this

SlackAttachment::title()

$this title(string $title, string $url = null) Set the title of the attachment. Parameters string $title string $url Return Value $this

SlackMessage

SlackMessage class SlackMessage (View source) Properties string $level The "level" of the notification (info, success, error). string|null $username The username to send the message from. string|null $icon The user icon for the message. string|null $channel The channel to send the message on. string $content The text content of the message. array $attachments The message's attachments. array $http Additional request options for the Guzzle HTTP client.

SimpleMessage::level()

$this level(string $level) Set the "level" of the notification (success, error, etc.). Parameters string $level Return Value $this

SimpleMessage::toArray()

array toArray() Get an array representation of the message. Return Value array

SimpleMessage::subject()

$this subject(string $subject) Set the subject of the notification. Parameters string $subject Return Value $this

SimpleMessage::greeting()

$this greeting(string $greeting) Set the greeting of the notification. Parameters string $greeting Return Value $this

SimpleMessage::line()

$this line(Action|string $line) Add a line of text to the notification. Parameters Action|string $line Return Value $this

SimpleMessage::success()

$this success() Indicate that the notification gives information about a successful operation. Return Value $this