1 | <?php |
||
23 | class Bot |
||
24 | { |
||
25 | /** |
||
26 | * @var Bot |
||
27 | */ |
||
28 | private static $instance; |
||
|
|||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $token; |
||
34 | |||
35 | /** |
||
36 | * Bot constructor. |
||
37 | * |
||
38 | * @param null|string $token |
||
39 | * @param array $options |
||
40 | * |
||
41 | * @throws TelegramCoreException |
||
42 | */ |
||
43 | 3 | public function __construct($token = null, $options = []) |
|
56 | |||
57 | /** |
||
58 | * @param string $method |
||
59 | * @param array $params |
||
60 | * |
||
61 | * @return array |
||
62 | */ |
||
63 | 2 | public function call($method, $params = []) |
|
72 | |||
73 | 1 | public function __call($name, $arguments) |
|
77 | |||
78 | 2 | private function prepareResponse(ResponseInterface $response) |
|
87 | |||
88 | 1 | private function buildResponse(array $response) |
|
92 | |||
93 | 1 | public function getMe() |
|
97 | |||
98 | /** |
||
99 | * @param $message |
||
100 | * |
||
101 | * @return array |
||
102 | */ |
||
103 | public function sendMessage(MessageEntry $message) |
||
107 | |||
108 | public function sendTextMessage($to, $text) |
||
114 | } |
This check marks private properties in classes that are never used. Those properties can be removed.