Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public static function get(array $setting): MessengerInterface |
||
31 | { |
||
32 | $serverUrl = $setting['config']['server_url'] ?? ''; |
||
33 | $userId = $setting['config']['user_id'] ?? ''; |
||
34 | $accessToken = $setting['config']['access_token'] ?? ''; |
||
35 | $channel = $setting['config']['channel'] ?? ''; |
||
36 | |||
37 | return new RocketChat($accessToken, $userId, $serverUrl, $channel); |
||
38 | } |
||
39 | } |