| 1 | <?php |
||
| 8 | class SlashCommandResponse extends Response |
||
| 9 | { |
||
| 10 | /** @var SlashCommandRequest */ |
||
| 11 | protected $request; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | protected $text; |
||
| 15 | |||
| 16 | /** @var string */ |
||
| 17 | protected $responseType = 'ephemeral'; |
||
| 18 | |||
| 19 | /** @var string */ |
||
| 20 | protected $attachments = ''; |
||
| 21 | |||
| 22 | public static function createForRequest(Request $request) |
||
| 28 | |||
| 29 | public function setRequest(Request $request) |
||
| 35 | |||
| 36 | public function setText(string $text) |
||
| 42 | |||
| 43 | public function displayResponseOnlyToUserWhoTypedCommand() |
||
| 49 | |||
| 50 | public function displayResponseToEveryoneOnChannel() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Prepares the payload to be sent to the response. |
||
| 59 | */ |
||
| 60 | public function finalize() |
||
| 79 | } |
||
| 80 |