Passed
Push — master ( 620416...a29fb4 )
by Rougin
02:02
created

RouteCollection   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 19
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A routes() 0 5 1
1
<?php
2
3
namespace App\Example;
4
5
use Zapheus\Routing\Router;
6
7
/**
8
 * Route Collection
9
 *
10
 * @package App
11
 * @author  Rougin Royce Gutib <[email protected]>
12
 */
13
class RouteCollection extends Router
14
{
15
    /**
16
     * Namespace applied to all class-based routes.
17
     *
18
     * @var string
19
     */
20
    protected $namespace = 'App\Example';
21
22
    /**
23
     * Returns an array of route instances.
24
     *
25
     * @return \Zapheus\Routing\Route[]
26
     */
27 9
    public function routes()
28
    {
29 9
        $this->get('/test', 'TestController@greet');
30
31 9
        return $this->routes;
32
    }
33
}
34