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\core;
3
4
    use phoponent\framework\classe\xphp_tag;
5
6
	class Mon_component extends xphp_tag {
7
        public function render():string {
8
            $hello_world = $this->get_model('my_Mon_component')->get_hello_world();
9
            $view = $this->get_view('my_Mon_component')
10
                    ->set_vars([
11
                    'value' => $hello_world,
12
                    'class' => __CLASS__,
13
                ])->render();
14
            return $view;
15
        }
16
    }