Test Failed
Push — master ( 4e8938...efe3fd )
by Peter
08:14 queued 11s
created

StandardParametersData::getDepth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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
     * @param int|null $depth
26
     * @param int|null $indents
27
     * @param int|null $level
28
     */
29
    public function __construct(?int $depth, ?int $indents, ?int $level)
30
    {
31
        $this->depth = $depth;
32
        $this->indents = $indents;
33
        $this->level = $level;
34
    }
35
36
    /**
37
     * @return int|null
38
     */
39
    public function getDepth(): ?int
40
    {
41
        return $this->depth;
42
    }
43
44
    /**
45
     * @return int|null
46
     */
47
    public function getIndents(): ?int
48
    {
49
        return $this->indents;
50
    }
51
52
    /**
53
     * @return int|null
54
     */
55
    public function getLevel(): ?int
56
    {
57
        return $this->level;
58
    }
59
}
60