AbstractIssue   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A line() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Pluswerk\TypoScriptAutoFixer\Issue;
5
6
abstract class AbstractIssue
7
{
8
    /**
9
     * @var int
10
     */
11
    private $line;
12
13
    /**
14
     * AbstractIssue constructor.
15
     *
16
     * @param int $line
17
     */
18
    public function __construct(int $line)
19
    {
20
        $this->line = $line;
21
    }
22
23
    /**
24
     * @return int
25
     */
26
    public function line(): int
27
    {
28
        return $this->line;
29
    }
30
}
31