1 | <?php |
||
12 | abstract class BaseHandler implements HandlesSlashCommand |
||
13 | { |
||
14 | use DispatchesJobs; |
||
15 | |||
16 | /** @var \Spatie\SlashCommand\Request */ |
||
17 | protected $request; |
||
18 | |||
19 | public function __construct(Request $request) |
||
23 | |||
24 | public function respondToSlack(string $text): Response |
||
28 | |||
29 | protected function dispatch(ResponseJob $job) |
||
35 | |||
36 | public function getRequest(): Request |
||
40 | |||
41 | abstract public function handle(Request $request): Response; |
||
42 | |||
43 | abstract public function canHandle(Request $request): bool; |
||
44 | } |
||
45 |