| Total Complexity | 1 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class SendChatActionMethod implements HasActionVariableInterface |
||
| 16 | { |
||
| 17 | use ChatIdVariableTrait; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Type of action to broadcast. |
||
| 21 | * Choose one, depending on what the user is about to receive: |
||
| 22 | * typing for text messages, |
||
| 23 | * upload_photo for photos, |
||
| 24 | * record_video or upload_video for videos, |
||
| 25 | * record_audio or upload_audio for audio files, |
||
| 26 | * upload_document for general files, |
||
| 27 | * find_location for location data, |
||
| 28 | * record_video_note or upload_video_note for video notes. |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | public $action; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param int|string $chatId |
||
| 36 | * @param string $action |
||
| 37 | * |
||
| 38 | * @return SendChatActionMethod |
||
| 39 | */ |
||
| 40 | 1 | public static function create($chatId, string $action): SendChatActionMethod |
|
| 49 |