PHP 클래스 Spatie\SlashCommand\Handlers\BaseHandler

상속: implements Spatie\SlashCommand\HandlesSlashCommand, use trait Illuminate\Foundation\Bus\DispatchesJobs
파일 보기 프로젝트 열기: spatie/laravel-slack-slash-command 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$request Spatie\SlashCommand\Request

공개 메소드들

메소드 설명
__construct ( Request $request )
canHandle ( Request $request ) : boolean If this function returns true, the handle method will get called.
getRequest ( ) : Request
handle ( Request $request ) : Response Handle the given request. Remember that Slack expects a response within three seconds after the slash command was issued. If there is more time needed, dispatch a job.
respondToSlack ( string $text ) : Response

보호된 메소드들

메소드 설명
abort ( $response )
dispatch ( SlashCommandResponseJob $job )

메소드 상세

__construct() 공개 메소드

public __construct ( Request $request )
$request Spatie\SlashCommand\Request

abort() 보호된 메소드

protected abort ( $response )

canHandle() 추상적인 공개 메소드

If this function returns true, the handle method will get called.
abstract public canHandle ( Request $request ) : boolean
$request Spatie\SlashCommand\Request
리턴 boolean

dispatch() 보호된 메소드

protected dispatch ( SlashCommandResponseJob $job )
$job Spatie\SlashCommand\Jobs\SlashCommandResponseJob

getRequest() 공개 메소드

public getRequest ( ) : Request
리턴 Spatie\SlashCommand\Request

handle() 추상적인 공개 메소드

Handle the given request. Remember that Slack expects a response within three seconds after the slash command was issued. If there is more time needed, dispatch a job.
abstract public handle ( Request $request ) : Response
$request Spatie\SlashCommand\Request
리턴 Spatie\SlashCommand\Response

respondToSlack() 공개 메소드

public respondToSlack ( string $text ) : Response
$text string
리턴 Spatie\SlashCommand\Response

프로퍼티 상세

$request 보호되어 있는 프로퍼티

protected Request,Spatie\SlashCommand $request
리턴 Spatie\SlashCommand\Request