Completed
Push — master ( 1689ba...39d34e )
by Askupa
01:59
created

Component_progressbar::required_arguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
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
        );
20
    }
21
    
22
    public function required_arguments()
23
    {
24
        return array('value','min','max');
25
    }
26
    
27
    public function get_template_path() 
28
    {
29
        return __DIR__.'/template.phtml';
30
    }
31
}