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

NoRouteMatch::isMatch()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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