Mon_component   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 9
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 8 1
1
<?php
2
namespace phoponent\app\component\custom;
3
4
	class Mon_component extends \phoponent\app\component\core\Mon_component {
5
        public function render():string {
6
            $hello_world = $this->get_model('my_Mon_component')->get_hello_world();
7
            $view = $this->get_view('my_Mon_component')
8
                    ->set_vars([
9
                    'value' => $hello_world,
10
                    'class' => __CLASS__,
11
                ])->render();
12
            return $view;
13
        }
14
    }