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

YamlStandardConfigSingleData   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getYamlStandardConfigsSingleStandardData() 0 3 1
A getPathToExcludedFiles() 0 3 1
A getPathToFiles() 0 3 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