Passed
Push — master ( 871e4c...a56e33 )
by Alxarafe
27:52
created

IndexView::main()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
    public function main()
36
    {
37
        echo "Nothing to do!";
38
    }
39
40
    /**
41
     * TODO: Undocummented
42
     */
43
    public function addCSS(): void
44
    {
45
        parent::addCss();
46
        $this->addToVar('cssCode', $this->addResource('/css/login', 'css'));
47
    }
48
}
49