Passed
Push — master ( 15770c...ea0752 )
by Petr
08:09
created

Tcp   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 15
rs 10
c 0
b 0
f 0
ccs 6
cts 6
cp 1
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A loadAnswer() 0 3 1
A loadQuery() 0 3 1
A loadParams() 0 3 1
1
<?php
2
3
namespace kalanis\RemoteRequest\Protocols;
4
5
6
use kalanis\RemoteRequest;
7
8
9
/**
10
 * Class Tcp
11
 * @package kalanis\RemoteRequest\Protocols
12
 * Properties for query to remote server - raw TCP
13
 */
14
class Tcp extends AProtocol
15
{
16 2
    protected function loadParams(): RemoteRequest\Connection\Params\AParams
17
    {
18 2
        return new RemoteRequest\Connection\Params\Tcp();
19
    }
20
21 2
    protected function loadQuery(): RemoteRequest\Protocols\Dummy\Query
22
    {
23 2
        return new Dummy\Query();
24
    }
25
26 2
    protected function loadAnswer(): RemoteRequest\Protocols\Dummy\Answer
27
    {
28 2
        return new Dummy\Answer();
29
    }
30
}
31