Completed
Push — master ( 3e5a13...3a93f1 )
by Askupa
01:55
created

EditField::default_model()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Amarkal\Taxonomy;
4
5
class EditField
6
extends \Amarkal\UI\AbstractComponent
0 ignored issues
show
Coding Style introduced by
The extends keyword must be on the same line as the class name
Loading history...
7
{
8
    public function default_model() 
9
    {
10
        return array(
11
            'type'          => '',
12
            'label'         => '',
13
            'description'   => ''
14
        );
15
    }
16
    
17
    protected function on_created() 
18
    {
19
        $this->model['value'] = \get_term_meta($this->term_id, $this->name, true);
20
    }
21
    
22
    public function get_script_path()
23
    {
24
        return __DIR__.'/edit-field.phtml';
25
    }
26
}