Controller   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __handler() 0 4 1
1
<?php
2
namespace samsonphp\main;
3
4
use samson\core\CompressableExternalModule;
5
6
/**
7
 * Module controller
8
 * @package samsonphp\main
9
 */
10
class Controller extends CompressableExternalModule
11
{
12
    /** @var string Identifier */
13
	protected $id = 'main';
14
15
    /** Universal main controller action */
16
    public function __handler()
17
    {
18
        $this->html((new \view\main\IndexView())->output())->title('Main page');
19
    }
20
}
21