Completed
Push — master ( d7cd82...c94b19 )
by Mikołaj
04:50
created

ItemEditView   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A display() 0 12 1
1
<?php
2
3
namespace Rudolf\Modules\Appearance\Menu\Item;
4
5
use Rudolf\Framework\View\AdminView;
6
7
class ItemEditView extends AdminView
8
{
9
    protected $item;
10
    protected $types;
11
    protected $items;
12
13
    public function display($data, $types, $items)
14
    {
15
        $this->pageTitle = _('Menu editor');
16
        $this->head->setTitle($this->pageTitle);
17
        $this->item  = $data;
18
        $this->types = $types;
19
        $this->items = $items;
20
21
        $this->templateType = 'edit';
22
23
        $this->template = 'appearance-menu-item';
24
    }
25
}
26