PHP Класс Spatie\SlashCommand\Response

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$attachments Illuminate\Support\Collection
$channel string
$client GuzzleHttp\Client
$icon string
$request Request
$responseType string
$text string

Открытые методы

Метод Описание
__construct ( Client $client, Request $request )
create ( Request $request ) : Response
displayResponseToEveryoneOnChannel ( string $channelName = '' )
displayResponseToUserWhoTypedCommand ( )
getIconType ( ) : string
getIlluminateResponse ( ) : Illuminate\Http\Response
onChannel ( string $channelName )
send ( ) Send the response to Slack.
useIcon ( string $icon ) : this Set the icon (either URL or emoji) we will post as.
withAttachment ( Attachment $attachment )
withText ( string $text )

Защищенные методы

Метод Описание
getPayload ( ) : array

Описание методов

__construct() публичный метод

public __construct ( Client $client, Request $request )
$client GuzzleHttp\Client
$request Request

create() публичный статический метод

public static create ( Request $request ) : Response
$request Request
Результат Response

displayResponseToEveryoneOnChannel() публичный метод

public displayResponseToEveryoneOnChannel ( string $channelName = '' )
$channelName string

displayResponseToUserWhoTypedCommand() публичный метод

getIconType() публичный метод

public getIconType ( ) : string
Результат string

getIlluminateResponse() публичный метод

public getIlluminateResponse ( ) : Illuminate\Http\Response
Результат Illuminate\Http\Response

getPayload() защищенный метод

protected getPayload ( ) : array
Результат array

onChannel() публичный метод

public onChannel ( string $channelName )
$channelName string

send() публичный метод

Send the response to Slack.
public send ( )

useIcon() публичный метод

Set the icon (either URL or emoji) we will post as.
public useIcon ( string $icon ) : this
$icon string
Результат this

withAttachment() публичный метод

public withAttachment ( Attachment $attachment )
$attachment Attachment

withText() публичный метод

public withText ( string $text )
$text string

Описание свойств

$attachments защищенное свойство

protected Collection,Illuminate\Support $attachments
Результат Illuminate\Support\Collection

$channel защищенное свойство

protected string $channel
Результат string

$client защищенное свойство

protected Client,GuzzleHttp $client
Результат GuzzleHttp\Client

$icon защищенное свойство

protected string $icon
Результат string

$request защищенное свойство

protected Request,Spatie\SlashCommand $request
Результат Request

$responseType защищенное свойство

protected string $responseType
Результат string

$text защищенное свойство

protected string $text
Результат string