Documentation

SlackWebhookChannel
in package

Table of Contents

$http  : Client
The HTTP client instance.
__construct()  : void
Create a new Slack channel instance.
send()  : ResponseInterface
Send the given notification.
attachments()  : array<string|int, mixed>
Format the message's attachments.
buildJsonPayload()  : array<string|int, mixed>
Build up a JSON payload for the Slack webhook.
fields()  : array<string|int, mixed>
Format the attachment's fields.

Properties

Methods

buildJsonPayload()

Build up a JSON payload for the Slack webhook.

protected buildJsonPayload(SlackMessage $message) : array<string|int, mixed>
Parameters
$message : SlackMessage
Return values
array<string|int, mixed>

Search results