Test Failed
Push — master ( c0baca...92e477 )
by Bohuslav
10:33
created

RouteBuilder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 4 1
1
<?php
2
3
namespace Kambo\Router\Route;
4
5
use Kambo\Router\Route\Route;
6
7
/**
8
 * Build instance of the route
9
 *
10
 * @author  Bohuslav Simek <[email protected]>
11
 * @license Apache-2.0
12
 * @package Kambo\Router\Route
13
 */
14
class RouteBuilder
15
{
16
    public function build($method, $route, $handler)
17
    {
18
        return new Route($method, $route, $handler);
19
    }
20
}
21