Passed
Push — master ( 0e5a66...620416 )
by Rougin
12:10
created

RouteCollection::routes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
ccs 0
cts 4
cp 0
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
crap 2
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
    public function routes()
28
    {
29
        $this->get('/test', 'TestController@greet');
30
31
        return $this->routes;
32
    }
33
}
34