TypeAddView::display()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Rudolf\Modules\Appearance\Menu\Type;
4
5
use Rudolf\Framework\View\AdminView;
6
7
class TypeAddView extends AdminView
8
{
9
    /**
10
     * @var MenuType
11
     */
12
    protected $item;
13
14
    public function display(MenuType $item) {
15
        $this->pageTitle = _('Menu editor');
16
        $this->head->setTitle($this->pageTitle);
17
        $this->item = $item;
18
19
        $this->templateType = 'add';
20
        $this->template = 'appearance-menu-type';
21
    }
22
}
23