Component_progressbar::default_model()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 9
rs 9.6666
c 1
b 0
f 0
1
<?php
2
3
namespace Amarkal\UI;
4
5
/**
6
 * Implements a Progress Bar UI component.
7
 */
8
class Component_progressbar
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 = 'progressbar';
12
    
13
    public function default_model() 
14
    {
15
        return array(
16
            'min'           => null,
17
            'max'           => null,
18
            'value'         => null,
19
            'show'          => null
20
        );
21
    }
22
    
23
    public function required_arguments()
24
    {
25
        return array('value','min','max');
26
    }
27
    
28
    public function get_template_path() 
29
    {
30
        return __DIR__.'/template.phtml';
31
    }
32
}