Mon_component::render()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

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