Passed
Push — master ( c90fcd...a1da5a )
by Petr
09:07
created

TFile   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
dl 0
loc 19
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPath() 0 3 1
A setPath() 0 3 1
1
<?php
2
3
namespace kalanis\kw_mapper\Storage\File;
4
5
6
/**
7
 * Trait TFile
8
 * @package kalanis\kw_mapper\Storage\File
9
 */
10
trait TFile
11
{
12
    /** @var string[] */
13
    protected array $presetPath = [];
14
15
    /**
16
     * @param string[] $path
17
     */
18 2
    protected function setPath(array $path): void
19
    {
20 2
        $this->presetPath = $path;
21 2
    }
22
23
    /**
24
     * @return string[]
25
     */
26 6
    protected function getPath(): array
27
    {
28 6
        return $this->presetPath;
29
    }
30
}
31