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\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
    }