UdpSocket   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
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 UdpSocket implements PortInterface, UdpInterface
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class UdpSocket
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
    abstract public function onPacket(Server $server, $data, array $clientInfo);
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function onPacket()
Loading history...
18
}