Total Complexity | 6 |
Total Lines | 73 |
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 string $messageId |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | public function status(string $messageId) |
||
35 | { |
||
36 | return $this->httpPostJson('message/list_message_status', compact('messageId')); |
||
|
|||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param array|null $data |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | public function send(array $data = null) |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param string|array $user |
||
51 | * |
||
52 | * @return $this |
||
53 | */ |
||
54 | public function toUser($user) |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @param string|array $party |
||
63 | * |
||
64 | * @return $this |
||
65 | */ |
||
66 | public function toParty($party) |
||
67 | { |
||
68 | $this->data['toparty'] = implode('|', (array) $party); |
||
69 | |||
70 | return $this; |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * @param int $agent |
||
75 | * |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function ofAgent(int $agent) |
||
79 | { |
||
80 | $this->data['agentid'] = $agent; |
||
81 | |||
82 | return $this; |
||
83 | } |
||
84 | |||
85 | /** |
||
86 | * @param $message |
||
87 | * |
||
88 | * @return $this |
||
89 | */ |
||
90 | public function withReply($message) |
||
95 | } |
||
96 | } |
||
97 |