Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function __construct( |
||
15 | LoggerInterface $logger, |
||
16 | array $config = []) |
||
17 | { |
||
18 | $this->setLog($logger); |
||
19 | |||
20 | $this->setConfig(array_merge( |
||
21 | [ |
||
22 | 'prefix' => 'lookup', |
||
23 | 'matchers' => [ |
||
24 | 'lookupUser' => "/^@(?'user'\\w+)\\b/", |
||
25 | 'lookupChannel' => "/^#(?'channel'\\w+)\\b/", |
||
26 | ], |
||
27 | ], |
||
28 | $config |
||
29 | )); |
||
30 | } |
||
31 | |||
41 | } |