Completed
Push — master ( 4b839d...94a773 )
by Valentin
02:14
created

TextMessageHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 7
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A onBinary() 0 4 1
1
<?php
2
/**
3
 * This file is a part of Woketo package.
4
 *
5
 * (c) Nekland <[email protected]>
6
 *
7
 * For the full license, take a look to the LICENSE file
8
 * on the root directory of this project
9
 */
10
11
namespace Nekland\Woketo\Message;
12
13
14
use Nekland\Woketo\Exception\UnsupportedException;
15
use Nekland\Woketo\Server\Connection;
16
17
abstract class TextMessageHandler extends SimpleMessageHandler
18
{
19 1
    public function onBinary(string $data, Connection $connection)
20
    {
21 1
        throw new UnsupportedException('Only text is authorized by TextMessageHandler.');
22
    }
23
}
24