NestingConsistencyIssue   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A firstEndLine() 0 3 1
A secondEndLine() 0 3 1
A secondLine() 0 3 1
A __construct() 0 7 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Pluswerk\TypoScriptAutoFixer\Issue;
5
6
use Helmich\TypoScriptParser\Tokenizer\LineGrouper;
7
use Helmich\TypoScriptParser\Tokenizer\TokenInterface;
8
9
final class NestingConsistencyIssue extends AbstractIssue
10
{
11
    /**
12
     * @var int
13
     */
14
    private $secondLine;
15
16
    /**
17
     * @var int
18
     */
19
    private $firstEndLine;
20
21
    /**
22
     * @var int
23
     */
24
    private $secondEndLine;
25
26
    public function __construct(int $line, int $secondLine, int $firstEndLine, int $secondEndLine)
27
    {
28
        parent::__construct($line);
29
30
        $this->firstEndLine = $firstEndLine;
31
        $this->secondLine = $secondLine;
32
        $this->secondEndLine = $secondEndLine;
33
    }
34
35
    /**
36
     * @return int
37
     */
38
    public function secondLine(): int
39
    {
40
        return $this->secondLine;
41
    }
42
43
    /**
44
     * @return int
45
     */
46
    public function firstEndLine(): int
47
    {
48
        return $this->firstEndLine;
49
    }
50
51
    /**
52
     * @return int
53
     */
54
    public function secondEndLine(): int
55
    {
56
        return $this->secondEndLine;
57
    }
58
}
59