Test Failed
Pull Request — master (#74)
by Peter
12:33 queued 05:48
created

YamlStandardConfigSingleData::getPathToFiles()   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 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace YamlStandards\Model\Config;
6
7
class YamlStandardConfigSingleData
8
{
9
    /**
10
     * @var string[]
11
     */
12
    private $pathToFiles;
13
14
    /**
15
     * @var string[]
16
     */
17
    private $pathToExcludedFiles;
18
19
    /**
20
     * @var \YamlStandards\Model\Config\YamlStandardConfigSingleStandardData[]
21
     */
22
    private $yamlStandardConfigsSingleStandardData;
23
24
    /**
25
     * @param string[] $pathToFiles
26
     * @param string[] $pathToExcludedFiles
27
     * @param \YamlStandards\Model\Config\YamlStandardConfigSingleStandardData[] $yamlStandardConfigsSingleStandardData
28
     */
29 9
    public function __construct(array $pathToFiles, array $pathToExcludedFiles, array $yamlStandardConfigsSingleStandardData)
30
    {
31 9
        $this->pathToFiles = $pathToFiles;
32 9
        $this->pathToExcludedFiles = $pathToExcludedFiles;
33 9
        $this->yamlStandardConfigsSingleStandardData = $yamlStandardConfigsSingleStandardData;
34
    }
35
36
    /**
37
     * @return string[]
38
     */
39 9
    public function getPathToFiles(): array
40
    {
41 9
        return $this->pathToFiles;
42
    }
43
44
    /**
45
     * @return string[]
46
     */
47 9
    public function getPathToExcludedFiles(): array
48
    {
49 9
        return $this->pathToExcludedFiles;
50
    }
51
52
    /**
53
     * @return \YamlStandards\Model\Config\YamlStandardConfigSingleStandardData[]
54
     */
55 8
    public function getYamlStandardConfigsSingleStandardData(): array
56
    {
57 8
        return $this->yamlStandardConfigsSingleStandardData;
58
    }
59
}
60