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

RouteBuilder::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
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