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

Router   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 49
ccs 18
cts 18
cp 1
rs 10
c 0
b 0
f 0
wmc 5
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