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
|
|
|
* @var bool |
41
|
|
|
*/ |
42
|
|
|
private $ignoreCommentsIndent; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @param int $depth |
46
|
|
|
* @param int $indents |
47
|
|
|
* @param int $level |
48
|
|
|
* @param string $serviceAliasingType |
49
|
|
|
* @param string $indentsCommentsWithoutParent |
50
|
|
|
* @param string[] $alphabeticalPrioritizedKeys |
51
|
|
|
* @param bool $ignoreCommentsIndent |
52
|
|
|
*/ |
53
|
37 |
|
public function __construct( |
54
|
|
|
int $depth, |
55
|
|
|
int $indents, |
56
|
|
|
int $level, |
57
|
|
|
string $serviceAliasingType, |
58
|
|
|
string $indentsCommentsWithoutParent, |
59
|
|
|
array $alphabeticalPrioritizedKeys, |
60
|
|
|
bool $ignoreCommentsIndent |
61
|
|
|
) { |
62
|
37 |
|
$this->depth = $depth; |
63
|
37 |
|
$this->indents = $indents; |
64
|
37 |
|
$this->level = $level; |
65
|
37 |
|
$this->serviceAliasingType = $serviceAliasingType; |
66
|
37 |
|
$this->indentsCommentsWithoutParent = $indentsCommentsWithoutParent; |
67
|
37 |
|
$this->alphabeticalPrioritizedKeys = $alphabeticalPrioritizedKeys; |
68
|
37 |
|
$this->ignoreCommentsIndent = $ignoreCommentsIndent; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @return int |
73
|
|
|
*/ |
74
|
6 |
|
public function getDepth(): int |
75
|
|
|
{ |
76
|
6 |
|
return $this->depth; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @return int |
81
|
|
|
*/ |
82
|
14 |
|
public function getIndents(): int |
83
|
|
|
{ |
84
|
14 |
|
return $this->indents; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @return int |
89
|
|
|
*/ |
90
|
6 |
|
public function getLevel(): int |
91
|
|
|
{ |
92
|
6 |
|
return $this->level; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @return string |
97
|
|
|
*/ |
98
|
10 |
|
public function getServiceAliasingType(): string |
99
|
|
|
{ |
100
|
10 |
|
return $this->serviceAliasingType; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @return string |
105
|
|
|
*/ |
106
|
8 |
|
public function getIndentsCommentsWithoutParent(): string |
107
|
|
|
{ |
108
|
8 |
|
return $this->indentsCommentsWithoutParent; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @return string[] |
113
|
|
|
*/ |
114
|
6 |
|
public function getAlphabeticalPrioritizedKeys(): array |
115
|
|
|
{ |
116
|
6 |
|
return $this->alphabeticalPrioritizedKeys; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @return bool |
121
|
|
|
*/ |
122
|
12 |
|
public function isIgnoreCommentsIndent(): bool |
123
|
|
|
{ |
124
|
12 |
|
return $this->ignoreCommentsIndent; |
125
|
|
|
} |
126
|
|
|
} |
127
|
|
|
|