Passed
Push — master ( 37fed7...ab9d98 )
by Peter
08:09 queued 11s
created

getAlphabeticalPrioritizedKeys()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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
     * @var string[]
36
     */
37
    private $alphabeticalPrioritizedKeys;
38
39
    /**
40
     * @param int $depth
41
     * @param int $indents
42
     * @param int $level
43
     * @param string $serviceAliasingType
44
     * @param string $indentsCommentsWithoutParent
45
     * @param string[] $alphabeticalPrioritizedKeys
46
     */
47 36
    public function __construct(
48
        int $depth,
49
        int $indents,
50
        int $level,
51
        string $serviceAliasingType,
52
        string $indentsCommentsWithoutParent,
53
        array $alphabeticalPrioritizedKeys
54
    ) {
55 36
        $this->depth = $depth;
56 36
        $this->indents = $indents;
57 36
        $this->level = $level;
58 36
        $this->serviceAliasingType = $serviceAliasingType;
59 36
        $this->indentsCommentsWithoutParent = $indentsCommentsWithoutParent;
60 36
        $this->alphabeticalPrioritizedKeys = $alphabeticalPrioritizedKeys;
61 36
    }
62
63
    /**
64
     * @return int
65
     */
66 6
    public function getDepth(): int
67
    {
68 6
        return $this->depth;
69
    }
70
71
    /**
72
     * @return int
73
     */
74 13
    public function getIndents(): int
75
    {
76 13
        return $this->indents;
77
    }
78
79
    /**
80
     * @return int
81
     */
82 6
    public function getLevel(): int
83
    {
84 6
        return $this->level;
85
    }
86
87
    /**
88
     * @return string
89
     */
90 10
    public function getServiceAliasingType(): string
91
    {
92 10
        return $this->serviceAliasingType;
93
    }
94
95
    /**
96
     * @return string
97
     */
98 8
    public function getIndentsCommentsWithoutParent(): string
99
    {
100 8
        return $this->indentsCommentsWithoutParent;
101
    }
102
103
    /**
104
     * @return string[]
105
     */
106 6
    public function getAlphabeticalPrioritizedKeys(): array
107
    {
108 6
        return $this->alphabeticalPrioritizedKeys;
109
    }
110
}
111