EditorView::editor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
1
<?php
2
3
namespace Rudolf\Modules\Appearance\Editor;
4
5
use Rudolf\Framework\View\AdminView;
6
7
class EditorView extends AdminView
8
{
9
    /**
10
     * @var array
11
     */
12
    protected $filesList;
13
14
    /**
15
     * @var array
16
     */
17
    protected $file;
18
19
    /**
20
     * @param array $filesList
21
     * @param array $file
22
     */
23
    public function editor(array $filesList, array $file)
24
    {
25
        $this->pageTitle = _('Theme editor');
26
        $this->head->setTitle($this->pageTitle);
27
28
        $this->filesList = $filesList;
29
30
        $this->file = $file;
31
32
        $this->template = 'appearance-editor';
33
    }
34
}
35