Passed
Push — master ( 21f999...0e469d )
by Jelmer
02:01
created

NoRouteMatch   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 4
c 1
b 0
f 0
dl 0
loc 15
ccs 6
cts 6
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getController() 0 3 1
A getAttributes() 0 3 1
A isMatch() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace jschreuder\Middle\Router;
4
5
use jschreuder\Middle\Controller\ControllerInterface;
6
7
final class NoRouteMatch implements RouteMatchInterface
8
{
9 3
    public function isMatch(): bool
10
    {
11 3
        return false;
12
    }
13
    
14 1
    public function getController(): ControllerInterface
15
    {
16 1
        throw new \RuntimeException('An unmatched route does not have a controller');
17
    }
18
19 1
    public function getAttributes(): array
20
    {
21 1
        throw new \RuntimeException('An unmatched route does not have attributes');
22
    }
23
}
24