Conditions | 7 |
Paths | 5 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 56 |
Changes | 0 |
1 | <?php |
||
33 | public function process(Update $update): void |
||
34 | { |
||
35 | if ($update->message && $update->message instanceof Message) { |
||
36 | $chatType = $update->message->chat->type; |
||
37 | |||
38 | if (self::CHAT_TYPE_PRIVATE === $chatType) { |
||
39 | $this->privateMessageProcessor->process($update->message); |
||
40 | } elseif (self::CHAT_TYPE_GROUP === $chatType) { |
||
41 | // @todo implement |
||
42 | } |
||
43 | } elseif ($update->inline_query && $update->inline_query instanceof Query) { |
||
44 | $this->inlineQueryProcessor->process($update->inline_query); |
||
45 | } |
||
46 | } |
||
47 | } |