Test Setup Failed
Push — master ( 8fbc8d...aaba3a )
by Matthew
05:34
created

VariableIssue::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Psalm\Issue;
3
4
use function strtolower;
5
6
abstract class VariableIssue extends CodeIssue
7
{
8
    /**
9
     * @var string
10
     */
11
    public $var_name;
12
13
    /**
14
     * @param string $message
15
     * @param \Psalm\CodeLocation $code_location
16
     * @param string $var_name
17
     */
18
    public function __construct(
19
        $message,
20
        \Psalm\CodeLocation $code_location,
21
        $var_name
22
    ) {
23
        parent::__construct($message, $code_location);
24
        $this->var_name = strtolower($var_name);
25
    }
26
}
27