Completed
Push — master ( b209b1...84fcc2 )
by Peter
05:42
created

StandardParametersData   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 13
c 1
b 0
f 0
dl 0
loc 66
ccs 14
cts 14
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getIndents() 0 3 1
A getLevel() 0 3 1
A __construct() 0 6 1
A getServiceAliasingType() 0 3 1
A getDepth() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace YamlStandards\Model\Config;
6
7
class StandardParametersData
8
{
9
    /**
10
     * @var int|null
11
     */
12
    private $depth;
13
14
    /**
15
     * @var int|null
16
     */
17
    private $indents;
18
19
    /**
20
     * @var int|null
21
     */
22
    private $level;
23
24
    /**
25
     * @var string|null
26
     */
27
    private $serviceAliasingType;
28
29
    /**
30
     * @param int|null $depth
31
     * @param int|null $indents
32
     * @param int|null $level
33
     * @param string|null $serviceAliasingType
34
     */
35 29
    public function __construct(?int $depth, ?int $indents, ?int $level, ?string $serviceAliasingType)
36
    {
37 29
        $this->depth = $depth;
38 29
        $this->indents = $indents;
39 29
        $this->level = $level;
40 29
        $this->serviceAliasingType = $serviceAliasingType;
41 29
    }
42
43
    /**
44
     * @return int|null
45
     */
46 3
    public function getDepth(): ?int
47
    {
48 3
        return $this->depth;
49
    }
50
51
    /**
52
     * @return int|null
53
     */
54 11
    public function getIndents(): ?int
55
    {
56 11
        return $this->indents;
57
    }
58
59
    /**
60
     * @return int|null
61
     */
62 6
    public function getLevel(): ?int
63
    {
64 6
        return $this->level;
65
    }
66
67
    /**
68
     * @return string|null
69
     */
70 8
    public function getServiceAliasingType(): ?string
71
    {
72 8
        return $this->serviceAliasingType;
73
    }
74
}
75