PHP 클래스 Spatie\SlashCommand\Response

파일 보기 프로젝트 열기: spatie/laravel-slack-slash-command 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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