Controller::__handler()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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