| Total Complexity | 6 | 
| Total Lines | 71 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 22 | class Client extends BaseClient | ||
| 23 | { | ||
| 24 | /** | ||
| 25 | * @var array | ||
| 26 | */ | ||
| 27 | protected $data = []; | ||
| 28 | |||
| 29 | /** | ||
| 30 | * @param array $data | ||
| 31 | * | ||
| 32 | * @return array | ||
| 33 | */ | ||
| 34 | public function create(array $data) | ||
| 35 |     { | ||
| 36 |         return $this->httpPostJson('chat/create', $data); | ||
|  | |||
| 37 | } | ||
| 38 | |||
| 39 | /** | ||
| 40 | * @param array $data | ||
| 41 | * | ||
| 42 | * @return array | ||
| 43 | */ | ||
| 44 | public function update(array $data) | ||
| 45 |     { | ||
| 46 |         return $this->httpPostJson('chat/update', $data); | ||
| 47 | } | ||
| 48 | |||
| 49 | /** | ||
| 50 | * @param string $chatId | ||
| 51 | * | ||
| 52 | * @return array | ||
| 53 | */ | ||
| 54 | public function get(string $chatId) | ||
| 55 |     { | ||
| 56 |         return $this->httpGet('chat/get', [ | ||
| 57 | 'chatid' => $chatId, | ||
| 58 | ]); | ||
| 59 | } | ||
| 60 | |||
| 61 | /** | ||
| 62 | * @param array $data | ||
| 63 | * | ||
| 64 | * @return array | ||
| 65 | */ | ||
| 66 | public function send(array $data = null) | ||
| 69 | } | ||
| 70 | |||
| 71 | /** | ||
| 72 | * @param string $chatId | ||
| 73 | * | ||
| 74 | * @return $this | ||
| 75 | */ | ||
| 76 | public function toChat(string $chatId) | ||
| 81 | } | ||
| 82 | |||
| 83 | /** | ||
| 84 | * @param $message | ||
| 85 | * | ||
| 86 | * @return $this | ||
| 87 | */ | ||
| 88 | public function withReply($message) | ||
| 93 | } | ||
| 94 | } | ||
| 95 |