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

Udp   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getProtocolVersion() 0 3 1
A getSchemaType() 0 3 1
1
<?php
2
3
namespace kalanis\RemoteRequest\Connection\Params;
4
5
6
use kalanis\RemoteRequest\Interfaces\ISchema;
7
8
9
/**
10
 * Properties for query to remote server - layer 2 protocol UDP
11
 * Class Udp
12
 * @package kalanis\RemoteRequest\Connection\Params
13
 */
14
class Udp extends AParams
15
{
16 1
    protected function getSchemaType(): string
17
    {
18 1
        return ISchema::SCHEMA_UDP;
19
    }
20
21 1
    public function getProtocolVersion(): int
22
    {
23 1
        return SOL_UDP;
24
    }
25
}
26