Completed
Push — master ( 9bb285...104bd6 )
by Alexander
03:14
created

Routes::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 7
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 10
rs 9.4285
1
<?php
2
3
namespace Api;
4
5
class Routes
6
{
7
8
    public function init($router)
9
    {
10
        $router->add('/api', array(
11
            'module'     => 'api',
12
            'controller' => 'index',
13
            'action'     => 'index',
14
        ))->setName('api');
15
16
        return $router;
17
    }
18
}
19