Completed
Push — master ( 7a8290...bcd23f )
by Askupa
03:29
created

Component_textarea::default_model()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
1
<?php
2
3
namespace Amarkal\UI;
4
5
/**
6
 * Implements a Textarea UI component.
7
 */
8
class Component_textarea
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
implements ValueComponentInterface
0 ignored issues
show
Coding Style introduced by
The implements keyword must be on the same line as the class name
Loading history...
11
{
12
    public function default_model() 
13
    {
14
        return array(
15
            'name'          => '',
16
            'disabled'      => false,
17
            'required'      => false,
18
            'readonly'      => false
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
}