PluginMatcher   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
1
<?php
2
3
namespace Nopolabs\Yabot\Plugin;
4
5
6
use Nopolabs\Yabot\Helpers\LogTrait;
7
use Nopolabs\Yabot\Helpers\MatcherTrait;
8
use Nopolabs\Yabot\Message\Message;
9
use Psr\Log\LoggerInterface;
10
use Psr\Log\LogLevel;
11
12
class PluginMatcher
13
{
14
    use LogTrait;
15
    use MatcherTrait;
16
17
    public function __construct(
18
        string $pluginId,
19
        bool $isBot = null,
20
        array $channels,
21
        array $users,
22
        LoggerInterface $logger = null)
23
    {
24
        $this->setName($pluginId);
25
        $this->setIsBot($isBot);
26
        $this->setChannels($channels);
27
        $this->setUsers($users);
28
        $this->setLog($logger);
29
    }
30
}
31