EmptySectionIssue::endLine()   A
last analyzed

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
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 EmptySectionIssue extends AbstractIssue
10
{
11
    /**
12
     * @var int
13
     */
14
    private $endLine;
15
16
    /**
17
     * EmptySectionIssue constructor.
18
     *
19
     * @param int   $line
20
     * @param TokenInterface[] $tokens
21
     */
22
    public function __construct(int $line, int $endLine)
23
    {
24
        parent::__construct($line);
25
26
        $this->endLine = $endLine;
27
    }
28
29
    /**
30
     * @return int
31
     */
32
    public function startLine(): int
33
    {
34
        return $this->line();
35
    }
36
37
    public function endLine()
38
    {
39
        return $this->endLine;
40
    }
41
}
42