Total Complexity | 5 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | abstract class TcpSocket implements PortInterface, TcpInterface |
||
9 | { |
||
10 | protected $swoolePort; |
||
11 | |||
12 | public function __construct(Port $port) |
||
15 | } |
||
16 | |||
17 | public function onConnect(Server $server, $fd, $reactorId) |
||
18 | { |
||
19 | } |
||
20 | |||
21 | public function onClose(Server $server, $fd, $reactorId) |
||
23 | } |
||
24 | |||
25 | public function onBufferFull(Server $server, $fd) |
||
27 | } |
||
28 | |||
29 | public function onBufferEmpty(Server $server, $fd) |
||
31 | } |
||
32 | |||
33 | abstract public function onReceive(Server $server, $fd, $reactorId, $data); |
||
34 | } |