Completed
Push — master ( db6d79...ec96ca )
by Marcel
01:29
created

ChannelManager::determineChannelClass()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.8666
c 0
b 0
f 0
cc 3
nc 3
nop 1
1
<?php
2
3
namespace BeyondCode\LaravelWebSockets\WebSockets\Channels;
4
5
use Ratchet\ConnectionInterface;
6
7
interface ChannelManager
8
{
9
    public function findOrCreate(string $appId, string $channelName): Channel;
10
11
    public function find(string $appId, string $channelName): ?Channel;
12
13
    public function getChannels(string $appId): array;
14
15
    public function getConnectionCount(string $appId): int;
16
17
    public function removeFromAllChannels(ConnectionInterface $connection);
18
}
19