PhpCsFixerLevels   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 67
rs 10
c 0
b 0
f 0
ccs 14
cts 14
cp 1

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getPsr0() 0 4 1
A getPsr1() 0 4 1
A getPsr2() 0 4 1
A getSymfony() 0 4 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