1 | <?php |
||
7 | class Bot implements BotInterface |
||
8 | { |
||
9 | use \League\Event\EmitterTrait; |
||
10 | |||
11 | /** @var string */ |
||
12 | private $botToken; |
||
|
|||
13 | /** @var int */ |
||
14 | private $offset; |
||
15 | /** @var APIPollClient */ |
||
16 | private $client; |
||
17 | |||
18 | /** |
||
19 | * @param APIClient $client |
||
20 | */ |
||
21 | public function __construct(APIPollClient $client) |
||
25 | |||
26 | public function poll() |
||
30 | |||
31 | /** |
||
32 | * @param \React\HttpClient\Response $response |
||
33 | */ |
||
34 | public function _handlePollResponse(\React\HttpClient\Response $response) |
||
39 | |||
40 | /** |
||
41 | * @param array $data |
||
42 | * @param \React\HttpClient\Response $response |
||
43 | */ |
||
44 | public function _handlePollData($data, $response) |
||
63 | |||
64 | /** |
||
65 | * @param \React\HttpClient\Response $response |
||
66 | */ |
||
67 | public function _handlePollError(\React\HttpClient\Response $response) |
||
71 | |||
72 | /** |
||
73 | * @param APIMessage $message |
||
74 | * @return function |
||
75 | */ |
||
76 | public function getResponder(APIMessage $message) |
||
82 | } |
||
83 |
This check marks private properties in classes that are never used. Those properties can be removed.