Passed
Branch main (166306)
by Nelson
03:35
created

DefaultHandler::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace App\Handlers;
4
5
use App\Libs\Template;
6
use App\Libs\Session;
7
8
/**
9
 * DefaultHandler
10
 * Handler para la página de inicio
11
 */
12
class DefaultHandler extends Handler
13
{
14
    public function handle(array $params = [])
15
    {
16
        $template = new Template();
17
        $template->set("saludo", "Saludo interno");
18
        $template->render("default/index");
19
    }
20
}
21