Plugin   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 2
b 0
f 0
dl 0
loc 19
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __process() 0 2 1
A stop() 0 3 1
1
<?php
2
3
namespace TelegramBot;
4
5
use TelegramBot\Entities\Update;
6
use TelegramBot\Interfaces\PluginEventsInterface;
7
use TelegramBot\Interfaces\PluginInterface;
8
use TelegramBot\Traits\PluginEventsTrait;
9
use TelegramBot\Traits\PluginTrait;
10
11
/**
12
 * Plugin class
13
 *
14
 * @link    https://github.com/telegram-bot-php/core
15
 * @author  Shahrad Elahi (https://github.com/shahradelahi)
16
 * @license https://github.com/telegram-bot-php/core/blob/master/LICENSE (MIT License)
17
 */
18
class Plugin implements PluginEventsInterface, PluginInterface
19
{
20
21
    use PluginTrait;
22
    use PluginEventsTrait;
23
24
    public function __process(Update $update): void
25
    {
26
        // TODO: Implement __process() method.
27
    }
28
29
    /**
30
     * Kill the plugin.
31
     *
32
     * @return void
33
     */
34
    protected function stop(): void
35
    {
36
        $this->hook->stop();
37
    }
38
39
}
40