AboutController::indexAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
nc 1
nop 0
dl 0
loc 8
c 1
b 0
f 0
cc 1
rs 10
1
<?php
2
3
namespace Pan\About;
4
5
use Anax\Commons\ContainerInjectableInterface;
6
use Anax\Commons\ContainerInjectableTrait;
7
8
9
/**
10
 * A sample controller to show how a controller class can be implemented.
11
 */
12
class AboutController implements ContainerInjectableInterface
13
{
14
    use ContainerInjectableTrait;
15
16
    public function indexAction() : object
17
    {
18
        $page = $this->di->get("page");
19
20
        $page->add("about/index",);
21
22
        return $page->render([
23
            "title" => "About",
24
        ]);
25
    }
26
}
27