Routes::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

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