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

StandardParametersData::getServiceAliasingType()   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|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