Completed
Push — master ( 7a803c...5b8a72 )
by Peter
11:20
created

StandardParametersData   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 86
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
c 1
b 0
f 0
dl 0
loc 86
ccs 17
cts 17
cp 1
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getIndents() 0 3 1
A getLevel() 0 3 1
A getIndentsCommentsWithoutParent() 0 3 1
A __construct() 0 12 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
11
     */
12
    private $depth;
13
14
    /**
15
     * @var int
16
     */
17
    private $indents;
18
19
    /**
20
     * @var int
21
     */
22
    private $level;
23
24
    /**
25
     * @var string
26
     */
27
    private $serviceAliasingType;
28
29
    /**
30
     * @var string
31
     */
32
    private $indentsCommentsWithoutParent;
33
34
    /**
35
     * @param int $depth
36
     * @param int $indents
37
     * @param int $level
38
     * @param string $serviceAliasingType
39
     * @param string $indentsCommentsWithoutParent
40
     */
41 31
    public function __construct(
42
        int $depth,
43
        int $indents,
44
        int $level,
45
        string $serviceAliasingType,
46
        string $indentsCommentsWithoutParent
47
    ) {
48 31
        $this->depth = $depth;
49 31
        $this->indents = $indents;
50 31
        $this->level = $level;
51 31
        $this->serviceAliasingType = $serviceAliasingType;
52 31
        $this->indentsCommentsWithoutParent = $indentsCommentsWithoutParent;
53 31
    }
54
55
    /**
56
     * @return int
57
     */
58 3
    public function getDepth(): int
59
    {
60 3
        return $this->depth;
61
    }
62
63
    /**
64
     * @return int
65
     */
66 13
    public function getIndents(): int
67
    {
68 13
        return $this->indents;
69
    }
70
71
    /**
72
     * @return int
73
     */
74 6
    public function getLevel(): int
75
    {
76 6
        return $this->level;
77
    }
78
79
    /**
80
     * @return string
81
     */
82 10
    public function getServiceAliasingType(): string
83
    {
84 10
        return $this->serviceAliasingType;
85
    }
86
87
    /**
88
     * @return string
89
     */
90 8
    public function getIndentsCommentsWithoutParent(): string
91
    {
92 8
        return $this->indentsCommentsWithoutParent;
93
    }
94
}
95