Completed
Push — master ( 35c1c3...0dd52b )
by Dawid
10s
created

Router::findRoute()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 15
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 3

Importance

Changes 0
Metric Value
cc 3
eloc 10
nc 3
nop 2
dl 0
loc 15
ccs 10
cts 10
cp 1
crap 3
rs 9.4285
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Igni\Http;
4
5
/**
6
 * Responsible for aggregating routes and forwarding request between framework and application layer.
7
 *
8
 * @package Igni\Http
9
 */
10
interface Router
11
{
12
    public function addRoute(Route $route): void;
13
    public function findRoute(string $method, string $path): Route;
14
}
15