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

TypeEditView   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

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