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

ErrorResult::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 5
rs 10
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