GetProtection   A
last analyzed

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 7
cts 7
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCommand() 0 3 1
A getData() 0 3 1
A setDirPath() 0 4 1
1
<?php
2
3
namespace kalanis\RemoteRequest\Protocols\Fsp\Query;
4
5
6
use kalanis\RemoteRequest\Protocols\Fsp;
7
8
9
/**
10
 * Class GetProtection
11
 * @package kalanis\RemoteRequest\Protocols\Fsp\Query
12
 * Get dir protection details
13
 */
14
class GetProtection extends AQuery
15
{
16
    protected string $dirPath = '';
17
18 1
    protected function getCommand(): int
19
    {
20 1
        return Fsp::CC_GET_PRO;
21
    }
22
23 1
    public function setDirPath(string $filePath): self
24
    {
25 1
        $this->dirPath = $filePath;
26 1
        return $this;
27
    }
28
29 1
    protected function getData(): string
30
    {
31 1
        return $this->dirPath . chr(0);
32
    }
33
}
34