AboutController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 12
c 1
b 0
f 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 8 1
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