Passed
Push — master ( 043752...2a5ce0 )
by Alxarafe
27:58
created

IndexView   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A addCss() 0 4 1
1
<?php
2
/* Copyright (C) 2019       Alxarafe                    <[email protected]>
3
 *
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
8
 *
9
 * This program is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU General Public License
15
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
 */
17
namespace Alixar\Views;
18
19
use Alxarafe\Helpers\Skin;
20
21
/**
22
 * This class contains the methods and attributes specific to the IndexView
23
 * view (before home)
24
 *
25
 * @author Alxarafe
26
 */
27
class IndexView extends \Alixar\Base\AlixarView
28
{
29
    public function __construct($ctrl)
30
    {
31
        parent::__construct($ctrl);
32
        Skin::setTemplate('dashboard');
33
    }
34
35
    /**
36
     * TODO: Undocummented
37
     */
38
    public function addCss()
39
    {
40
        parent::addCss();
41
        $this->addToVar('cssCode', $this->addResource('/css/login', 'css'));
42
    }
43
}
44