Completed
Push — master ( 579edf...7a8290 )
by Askupa
01:43
created

Component_radio   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A default_model() 0 10 1
A required_arguments() 0 4 1
A get_template_path() 0 4 1
1
<?php
2
3
namespace Amarkal\UI;
4
5
/**
6
 * Implements a Radio UI component.
7
 */
8
class Component_radio
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 function default_model() 
12
    {
13
        return array(
14
            'name'          => '',
15
            'disabled'      => false,
16
            'required'      => false,
17
            'readonly'      => false,
18
            'data'          => array()
19
        );
20
    }
21
    
22
    public function required_arguments()
23
    {
24
        return array('name');
25
    }
26
    
27
    public function get_template_path() 
28
    {
29
        return __DIR__.'/template.phtml';
30
    }
31
}