LumenRouteAdapter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Mpociot\ApiDoc\Matching;
4
5
use Illuminate\Routing\Route;
6
7
/**
8
 * Class LumenRouteAdapter.
9
 * Lumen routes don't extend from Laravel routes,
10
 * so we need this class to convert a Lmen route to a Laravel one.
11
 */
12
class LumenRouteAdapter extends Route
13
{
14
    /**
15
     * LumenRouteAdapter constructor.
16
     *
17
     * @param array $lumenRoute
18
     */
19
    public function __construct(array $lumenRoute)
20
    {
21
        parent::__construct($lumenRoute['method'], $lumenRoute['uri'], $lumenRoute['action']);
22
    }
23
}
24