EmptySectionIssue   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 6
c 1
b 0
f 0
dl 0
loc 31
rs 10

3 Methods

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