Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class Telegram |
||
21 | { |
||
22 | /** |
||
23 | * Invoker. |
||
24 | * |
||
25 | * @param array $args |
||
26 | * |
||
27 | * @return bool |
||
28 | */ |
||
29 | public function __invoke(array $args): bool |
||
30 | { |
||
31 | return $this->sandbox($args[0], $args[1]); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Test Telegram. |
||
36 | * |
||
37 | * @param array $getParams The GET params passed from tryMessenger method. |
||
38 | * @param array $message The message title and body. |
||
39 | * |
||
40 | * @return bool |
||
41 | */ |
||
42 | private function sandbox($getParams, $message) |
||
53 | } |
||
54 | } |