Passed
Push — master ( 2aa8dd...218721 )
by n
03:53
created

RoutingError   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 24
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getStatusCode() 0 4 1
A getMessage() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace N1215\Http\Router;
5
6
final class RoutingError implements RoutingErrorInterface
7
{
8
    /** @var int  */
9
    private $statusCode;
10
11
    /** @var string  */
12
    private $message;
13
14 4
    public function __construct(int $statusCode, string $message)
15
    {
16 4
        $this->statusCode = $statusCode;
17 4
        $this->message = $message;
18 4
    }
19
20 2
    public function getStatusCode(): int
21
    {
22 2
        return $this->statusCode;
23
    }
24
25 2
    public function getMessage(): string
26
    {
27 2
        return $this->message;
28
    }
29
}
30