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

ItemAddView::display()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 12
rs 9.8666
c 0
b 0
f 0
1
<?php
2
3
namespace Rudolf\Modules\Appearance\Menu\Item;
4
5
use Rudolf\Component\Helpers\Navigation\MenuItemCollection;
6
use Rudolf\Framework\View\AdminView;
7
8
class ItemAddView extends AdminView
9
{
10
    /**
11
     * @var MenuItem
12
     */
13
    protected $item;
14
15
    /**
16
     * @var array
17
     */
18
    protected $types;
19
20
    /**
21
     * @var MenuItemCollection
22
     */
23
    protected $items;
24
25
    public function display($data, $types, $items)
26
    {
27
        $this->pageTitle = _('Menu editor');
28
        $this->head->setTitle($this->pageTitle);
29
        $this->item = $data;
30
        $this->types = $types;
31
        $this->items = $items;
32
33
        $this->templateType = 'add';
34
35
        $this->template = 'appearance-menu-item';
36
    }
37
}
38