Test Failed
Push — master ( ca4a51...2e41d8 )
by Jean-Christophe
39:53 queued 25:21
created

AuthFiles::getBaseTemplate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 2
ccs 0
cts 0
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Ubiquity\controllers\auth;
4
5
class AuthFiles {
6
	protected $viewBase;
7
8 1
	public function __construct() {
9 1
		$this->viewBase = "@framework/auth";
10 1
	}
11
12
	/**
13
	 * To override
14
	 * The login view
15
	 *
16
	 * @return string
17
	 */
18
	public function getViewIndex() {
19
		return $this->viewBase . "/index.html";
20
	}
21
22
	/**
23
	 * To override
24
	 * The info view, displays the connected user and a logout button
25
	 *
26
	 * @return string
27
	 */
28
	public function getViewInfo() {
29
		return $this->viewBase . "/info.html";
30
	}
31
32
	/**
33
	 * To override
34
	 *
35
	 * @return string
36
	 */
37
	public function getViewNoAccess() {
38
		return $this->viewBase . "/noAccess.html";
39
	}
40
41
	/**
42
	 * Returns the base template for all Auth actions if getBaseTemplate return a base template filename
43
	 *
44
	 * @return string
45
	 */
46
	public function getViewBaseTemplate() {
47
		return $this->viewBase . "/baseTemplate.html";
48
	}
49
50
	/**
51
	 * To override
52
	 *
53
	 * @return string
54
	 */
55
	public function getViewDisconnected() {
56
		return $this->viewBase . "/disconnected.html";
57
	}
58
59
	/**
60
	 *
61
	 * @return string
62
	 */
63
	public function getViewMessage() {
64
		return $this->viewBase . "/message.html";
65
	}
66 1
67 1
	/**
68
	 * To override
69
	 * Returns the base template filename, default : null
70
	 */
71
	public function getBaseTemplate() {
72
		return;
73
	}
74
}
75
76