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

Routes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 10 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