Completed
Push — master ( 813353...e05ee5 )
by BruceScrutinizer
08:42
created

ErrorResult   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
dl 0
loc 36
rs 10
c 1
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getType() 0 3 1
A get() 0 3 1
A getLine() 0 3 1
A getUse() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace NamespaceProtector\Result;
4
5
final class ErrorResult implements ResultInterface
6
{
7
    /** @var int  */
8
    private $type;
9
10
    /** @var int */
11
    private $line;
12
13
    /** @var string */
14
    private $use;
15
16
    public function __construct(int $line, string $use, int $type)
17
    {
18
        $this->line = $line;
19
        $this->use = $use;
20
        $this->type = $type;
21
    }
22
23
    public function get(): String
24
    {
25
        return $this->use;
26
    }
27
28
    public function getType(): int
29
    {
30
        return $this->type;
31
    }
32
33
    public function getUse(): string
34
    {
35
        return $this->use;
36
    }
37
38
    public function getLine(): int
39
    {
40
        return $this->line;
41
    }
42
}
43