ParseError   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 29
ccs 4
cts 8
cp 0.5
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getError() 0 4 1
A getMessage() 0 4 1
1
<?php
2
namespace Networkteam\JsonSeq;
3
4
class ParseError
5
{
6
7
    /**
8
     * @var int
9
     */
10
    private $error;
11
12
    /**
13
     * @var string
14
     */
15
    private $message;
16
17 1
    public function __construct(int $error, string $message)
18
    {
19 1
        $this->error = $error;
20 1
        $this->message = $message;
21 1
    }
22
23
    public function getError(): int
24
    {
25
        return $this->error;
26
    }
27
28
    public function getMessage(): string
29
    {
30
        return $this->message;
31
    }
32
}