Controller   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A onClose() 0 3 1
A onError() 0 3 1
A onMessage() 0 3 1
1
<?php
2
3
namespace BeyondCode\DuskDashboard\Ratchet\Http;
4
5
use Exception;
6
use Ratchet\ConnectionInterface;
7
use Ratchet\Http\HttpServerInterface;
8
9
abstract class Controller implements HttpServerInterface
10
{
11
    public function onClose(ConnectionInterface $connection)
12
    {
13
    }
14
15
    public function onError(ConnectionInterface $connection, Exception $e)
16
    {
17
    }
18
19
    public function onMessage(ConnectionInterface $from, $msg)
20
    {
21
    }
22
}
23