Completed
Push — master ( 2212b7...5b826e )
by Askupa
01:36
created

Component_number::default_model()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nc 1
nop 0
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Amarkal\UI;
4
5
/**
6
 * Implements a number UI component.
7
 */
8
class Component_number
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
            'size'          => null,
17
            'min'           => null,
18
            'max'           => null,
19
            'step'          => null,
20
            'required'      => false,
21
            'readonly'      => false
22
        );
23
    }
24
    
25
    public function required_arguments()
26
    {
27
        return array('name');
28
    }
29
    
30
    public function get_template_path() 
31
    {
32
        return __DIR__.'/template.phtml';
33
    }
34
}