Completed
Push — master ( 4a4b28...8e8c73 )
by Askupa
01:43
created

edit-field.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Amarkal\Taxonomy;
4
5
class EditField
6
extends \Amarkal\UI\AbstractComponent
0 ignored issues
show
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
}