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

TFile::setFileAccessor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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