Websocket   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
namespace SwooleTW\Http\Websocket\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
7
/**
8
 * @method static $this broadcast()
9
 * @method static $this to($values)
10
 * @method static $this join($rooms)
11
 * @method static $this leave($rooms)
12
 * @method static boolean emit($event, $data)
13
 * @method static $this in($room)
14
 * @method static $this on($event, $callback)
15
 * @method static boolean eventExists($event)
16
 * @method static mixed call($event, $data)
17
 * @method static boolean close($fd)
18
 * @method static $this setSender($fd)
19
 * @method static int getSender()
20
 * @method static boolean getIsBroadcast()
21
 * @method static array getTo()
22
 * @method static $this reset()
23
 * @method static $this middleware($middleware)
24
 * @method static $this setContainer($container)
25
 * @method static $this setPipeline($pipeline)
26
 * @method static \Illuminate\Contracts\Pipeline\Pipeline getPipeline()
27
 * @method static mixed loginUsing($user)
28
 * @method static $this loginUsingId($userId)
29
 * @method static $this logout()
30
 * @method static $this toUser($users)
31
 * @method static $this toUserId($userIds)
32
 * @method static string getUserId()
33
 * @method static boolean isUserIdOnline($userId)
34
 *
35
 * @see \SwooleTW\Http\Websocket\Websocket
36
 */
37
class Websocket extends Facade
38
{
39
    /**
40
     * Get the registered name of the component.
41
     *
42
     * @return string
43
     */
44
    protected static function getFacadeAccessor()
45
    {
46
        return 'swoole.websocket';
47
    }
48
}
49