AddView   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 31
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A addGallery() 0 13 1
1
<?php
2
3
namespace Rudolf\Modules\Galleries\One\Admin;
4
5
use Rudolf\Framework\View\AdminView;
6
7
class AddView extends AdminView
8
{
9
    /**
10
     * @var Gallery
11
     */
12
    protected $gallery;
13
14
    /**
15
     * @var string
16
     */
17
    protected $path;
18
19
    /**
20
     * Set data to add gallery.
21
     *
22
     * @param array $gallery
23
     */
24
    public function addGallery(array $gallery)
25
    {
26
        $this->gallery = new Gallery($gallery);
27
28
        $this->pageTitle = _('Add gallery');
29
        $this->head->setTitle($this->pageTitle);
30
31
        $this->path = DIR.'/admin/galleries/add';
32
33
        $this->templateType = 'add';
34
35
        $this->template = 'gallery-one';
36
    }
37
}
38