Completed
Push — master ( d46307...ffceb6 )
by Askupa
01:26
created

Component_html   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A default_model() 0 7 1
A get_template_path() 0 4 1
1
<?php
2
3
namespace Amarkal\UI;
4
5
/**
6
 * Implements an HTML UI component.
7
 */
8
class Component_html
9
extends AbstractComponent
0 ignored issues
show
Coding Style introduced by
The extends keyword must be on the same line as the class name
Loading history...
10
{
11
    public $component_type = 'html';
12
    
13
    public function default_model() 
14
    {
15
        return array(
16
            'html'          => '',
17
            'template'      => false
18
        );
19
    }
20
    
21
    public function get_template_path() 
22
    {
23
        return __DIR__.'/template.phtml';
24
    }
25
}