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

Php   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getSchemaType() 0 3 1
A getTimeout() 0 3 1
A getPort() 0 3 1
1
<?php
2
3
namespace kalanis\RemoteRequest\Connection\Params;
4
5
6
use kalanis\RemoteRequest\Interfaces\ISchema;
7
8
9
/**
10
 * Class Php
11
 * @package kalanis\RemoteRequest\Connection\Params
12
 * Properties for query to resource - wrapper for internal calls with available read and write props
13
 */
14
class Php extends AParams
15
{
16
    const HOST_MEMORY = 'memory';
17
    const HOST_TEMP = 'temp';
18
19 6
    protected function getSchemaType(): string
20
    {
21 6
        return ISchema::SCHEMA_PHP;
22
    }
23
24 1
    public function getPort(): ?int
25
    {
26 1
        return null;
27
    }
28
29 1
    public function getTimeout(): ?float
30
    {
31 1
        return null;
32
    }
33
}
34