TcpSocket::onConnect()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 3
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace Hhxsv5\LaravelS\Swoole\Socket;
4
5
use Swoole\Server;
6
use Swoole\Server\Port;
7
8
abstract class TcpSocket implements PortInterface, TcpInterface
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class TcpSocket
Loading history...
9
{
10
    protected $swoolePort;
11
12
    public function __construct(Port $port)
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function __construct()
Loading history...
13
    {
14
        $this->swoolePort = $port;
15
    }
16
17
    public function onConnect(Server $server, $fd, $reactorId)
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function onConnect()
Loading history...
18
    {
19
    }
20
21
    public function onClose(Server $server, $fd, $reactorId)
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function onClose()
Loading history...
22
    {
23
    }
24
25
    public function onBufferFull(Server $server, $fd)
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function onBufferFull()
Loading history...
26
    {
27
    }
28
29
    public function onBufferEmpty(Server $server, $fd)
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function onBufferEmpty()
Loading history...
30
    {
31
    }
32
33
    abstract public function onReceive(Server $server, $fd, $reactorId, $data);
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function onReceive()
Loading history...
34
}