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

StandardParametersData   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 10
c 1
b 0
f 0
dl 0
loc 51
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getIndents() 0 3 1
A getLevel() 0 3 1
A __construct() 0 5 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|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