Test Failed
Push — master ( 4e8938...efe3fd )
by Peter
08:14 queued 11s
created

YamlStandardConfigSingleStandardData::getChecker()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace YamlStandards\Model\Config;
6
7
use YamlStandards\Model\CheckerInterface;
8
use YamlStandards\Model\FixerInterface;
9
10
class YamlStandardConfigSingleStandardData
11
{
12
    /**
13
     * @var \YamlStandards\Model\CheckerInterface
14
     */
15
    private $checker;
16
17
    /**
18
     * @var \YamlStandards\Model\FixerInterface|null
19
     */
20
    private $fixer;
21
22
    /**
23
     * @var \YamlStandards\Model\Config\StandardParametersData
24
     */
25
    private $standardParametersData;
26
27
    /**
28
     * @param \YamlStandards\Model\CheckerInterface $checker
29
     * @param \YamlStandards\Model\FixerInterface|null $fixer
30
     * @param \YamlStandards\Model\Config\StandardParametersData $standardParametersData
31
     */
32
    public function __construct(CheckerInterface $checker, ?FixerInterface $fixer, StandardParametersData $standardParametersData)
33
    {
34
        $this->checker = $checker;
35
        $this->fixer = $fixer;
36
        $this->standardParametersData = $standardParametersData;
37
    }
38
39
    /**
40
     * @return \YamlStandards\Model\CheckerInterface
41
     */
42
    public function getChecker(): CheckerInterface
43
    {
44
        return $this->checker;
45
    }
46
47
    /**
48
     * @return \YamlStandards\Model\FixerInterface|null
49
     */
50
    public function getFixer(): ?FixerInterface
51
    {
52
        return $this->fixer;
53
    }
54
55
    /**
56
     * @return \YamlStandards\Model\Config\StandardParametersData
57
     */
58
    public function getStandardParametersData(): StandardParametersData
59
    {
60
        return $this->standardParametersData;
61
    }
62
}
63