| 1 | <?php |
||
| 7 | class SlashCommandResponse extends Response |
||
| 8 | { |
||
| 9 | /** @var SlashCommandRequest */ |
||
| 10 | protected $request; |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | protected $text; |
||
| 14 | |||
| 15 | /** @var string */ |
||
| 16 | protected $responseType = 'ephemeral'; |
||
| 17 | |||
| 18 | /** @var string */ |
||
| 19 | protected $attachments = ''; |
||
| 20 | |||
| 21 | public static function createForRequest(SlashCommandRequest $request) |
||
| 27 | |||
| 28 | public function setRequest(SlashCommandRequest $request) |
||
| 34 | |||
| 35 | public function setText(string $text) |
||
| 41 | |||
| 42 | public function displayResponseOnlyToUserWhoTypedCommand() |
||
| 48 | |||
| 49 | public function displayResponseToEveryoneOnChannel() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Prepares the payload to be sent to the reponse. |
||
| 58 | */ |
||
| 59 | public function __toString() |
||
| 76 | } |
||
| 77 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..