PhpCsFixerLevels::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
ccs 6
cts 6
cp 1
cc 1
nc 1
nop 4
crap 1
1
<?php
2
3
namespace PhpGitHooks\Module\Configuration\Domain;
4
5
class PhpCsFixerLevels
6
{
7
    /**
8
     * @var Level
9
     */
10
    private $psr0;
11
    /**
12
     * @var Level
13
     */
14
    private $psr1;
15
    /**
16
     * @var Level
17
     */
18
    private $psr2;
19
    /**
20
     * @var Level
21
     */
22
    private $symfony;
23
24
    /**
25
     * PhpCsFixerLevels constructor.
26
     *
27
     * @param Level $psr0
28
     * @param Level $psr1
29
     * @param Level $psr2
30
     * @param Level $symfony
31
     */
32 6
    public function __construct(Level $psr0, Level $psr1, Level $psr2, Level $symfony)
33
    {
34 6
        $this->psr0 = $psr0;
35 6
        $this->psr1 = $psr1;
36 6
        $this->psr2 = $psr2;
37 6
        $this->symfony = $symfony;
38 6
    }
39
40
    /**
41
     * @return Level
42
     */
43 3
    public function getPsr0()
44
    {
45 3
        return $this->psr0;
46
    }
47
48
    /**
49
     * @return Level
50
     */
51 3
    public function getPsr1()
52
    {
53 3
        return $this->psr1;
54
    }
55
56
    /**
57
     * @return Level
58
     */
59 3
    public function getPsr2()
60
    {
61 3
        return $this->psr2;
62
    }
63
64
    /**
65
     * @return Level
66
     */
67 3
    public function getSymfony()
68
    {
69 3
        return $this->symfony;
70
    }
71
}
72