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

VariableIssue   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
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