| Total Complexity | 4 |
| Total Lines | 69 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class SendChatAction extends AbstractMethod |
||
| 16 | { |
||
| 17 | const NAME = 'sendChatAction'; |
||
| 18 | |||
| 19 | const RETURN_ENTITY = Message::class; |
||
| 20 | |||
| 21 | const ACTION_TYPING = 'typing'; |
||
| 22 | |||
| 23 | const ACTION_UPLOAD_PHOTO = 'upload_photo'; |
||
| 24 | |||
| 25 | const ACTION_RECORD_VIDEO = 'record_video'; |
||
| 26 | |||
| 27 | const ACTION_UPLOAD_VIDEO = 'upload_video'; |
||
| 28 | |||
| 29 | const ACTION_RECORD_AUDIO = 'record_audio'; |
||
| 30 | |||
| 31 | const ACTION_UPLOAD_AUDIO = 'upload_audio'; |
||
| 32 | |||
| 33 | const ACTION_UPLOAD_DOCUMENT = 'upload_document'; |
||
| 34 | |||
| 35 | const ACTION_FIND_LOCATION = 'find_location'; |
||
| 36 | |||
| 37 | protected $chat_id; |
||
| 38 | |||
| 39 | protected $action; |
||
| 40 | |||
| 41 | protected $supportedProperties = [ |
||
| 42 | 'chat_id' => true, |
||
| 43 | 'action' => true |
||
| 44 | ]; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getChatId() |
||
| 50 | { |
||
| 51 | return $this->chat_id; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $chat_id |
||
| 56 | * |
||
| 57 | * @return $this |
||
| 58 | */ |
||
| 59 | public function setChatId($chat_id) |
||
| 60 | { |
||
| 61 | $this->chat_id = $chat_id; |
||
| 62 | |||
| 63 | return $this; |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | public function getAction() |
||
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @param string $action |
||
| 76 | * |
||
| 77 | * @return $this |
||
| 78 | */ |
||
| 79 | public function setAction($action) |
||
| 84 | } |
||
| 85 | } |
||
| 86 |