1 | <?php |
||
8 | class ZohoCliq |
||
9 | { |
||
10 | /** |
||
11 | * Zoho Cliq Auth Token |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $authtoken; |
||
15 | |||
16 | /** |
||
17 | * Default send to |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $send_to; |
||
21 | |||
22 | /** |
||
23 | * Default Channel to send message |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $channel; |
||
27 | |||
28 | /** |
||
29 | * Zoho Cliq message endpoint |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $endpoint; |
||
33 | |||
34 | /** |
||
35 | * Zoho Cliq message |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $message; |
||
39 | |||
40 | /** |
||
41 | * Zoho Cliq card |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $card; |
||
45 | |||
46 | /** |
||
47 | * The Guzzle HTTP client instance. |
||
48 | * |
||
49 | * @var \GuzzleHttp\Client |
||
50 | */ |
||
51 | protected $guzzle; |
||
52 | |||
53 | /** |
||
54 | * Instantiate a new Client. |
||
55 | * |
||
56 | * @param string $endpoint |
||
|
|||
57 | * @param array $attributes |
||
58 | * @return void |
||
59 | */ |
||
60 | public function __construct($authtoken, array $attributes = [], Guzzle $guzzle = null) |
||
74 | |||
75 | /** |
||
76 | * Set Default AuthToken |
||
77 | * @param string $authtoken |
||
78 | * @return void |
||
79 | */ |
||
80 | public function setAuthToken($authtoken) |
||
84 | |||
85 | /** |
||
86 | * Get Default Authtoken |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getAuthToken(): string |
||
93 | |||
94 | /** |
||
95 | * Set Default SendTo |
||
96 | * @param string $send_to |
||
97 | * @return void |
||
98 | */ |
||
99 | public function setDefaultSendTo($send_to) |
||
103 | |||
104 | /** |
||
105 | * Get Default Send To |
||
106 | * @return string |
||
107 | */ |
||
108 | public function getDefaultSendTo(): string |
||
112 | |||
113 | /** |
||
114 | * Set Default Channel |
||
115 | * @param string $channel |
||
116 | * @return void |
||
117 | */ |
||
118 | public function setDefaultChannel($channel) |
||
122 | |||
123 | /** |
||
124 | * Get Default Channel |
||
125 | * @return string |
||
126 | */ |
||
127 | public function getDefaultChannel(): string |
||
131 | |||
132 | /** |
||
133 | * Generate Cliq Endpoint from send_to and channel name |
||
134 | * @return void |
||
135 | */ |
||
136 | |||
137 | public function generateCliqEndpoint() |
||
141 | |||
142 | /** |
||
143 | * Get Default Endpoint |
||
144 | * @return string |
||
145 | */ |
||
146 | public function getEndpoint(): string |
||
150 | |||
151 | /** |
||
152 | * Get Message |
||
153 | * @return string |
||
154 | */ |
||
155 | public function getMessage(): string |
||
159 | |||
160 | /** |
||
161 | * Set Send To onfly |
||
162 | * @return self |
||
163 | */ |
||
164 | |||
165 | public function toChannel(): self |
||
170 | |||
171 | /** |
||
172 | * Set Send To onfly |
||
173 | * @return self |
||
174 | */ |
||
175 | |||
176 | public function toBot(): self |
||
181 | |||
182 | /** |
||
183 | * Set Send To onfly |
||
184 | * @return self |
||
185 | */ |
||
186 | |||
187 | public function toChat(): self |
||
192 | |||
193 | /** |
||
194 | * Set Send To onfly |
||
195 | * @return self |
||
196 | */ |
||
197 | |||
198 | public function toBuddy(): self |
||
203 | |||
204 | /** |
||
205 | * Change Channel on fly |
||
206 | */ |
||
207 | public function to($channel) |
||
212 | |||
213 | /** |
||
214 | * Create Message Card |
||
215 | * @return self |
||
216 | */ |
||
217 | public function card(array $attributes): self |
||
230 | |||
231 | /** |
||
232 | * Send message to selected destination |
||
233 | * */ |
||
234 | public function send($message) |
||
249 | |||
250 | public function createBody($message) |
||
258 | |||
259 | public function prepareAuth() |
||
265 | } |
||
266 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.