Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
4.17% covered (danger)
4.17%
1 / 24
4.17% covered (danger)
4.17%
1 / 24
CRAP
0.00% covered (danger)
0.00%
0 / 1
AbstractConfig
4.17% covered (danger)
4.17%
1 / 24
4.17% covered (danger)
4.17%
1 / 24
530.96
0.00% covered (danger)
0.00%
0 / 1
 getDbUser
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getDbPwd
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getDbName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getDbHost
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getUrlBootstrap
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getUrlJquery
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getUrlJqueryui
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getUrlJAtimepicker
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getUrlChartjs
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getUrlJQCloud
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getLocale
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getMaxAge
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setDbUser
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setDbPwd
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setDbname
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setDbHost
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setUrlBootstrap
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setUrlJquery
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setUrlJqueryui
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setUrlJAtimepicker
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setUrlChartjs
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setUrlJQCloud
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setLocale
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setMaxAge
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2namespace Lggr;
3
4/**
5 * @brief Base class for configuring website and db access.
6 */
7abstract class AbstractConfig {
8
9    protected $DBUSER;
10
11    protected $DBPWD;
12
13    protected $DBNAME;
14
15    protected $DBHOST;
16
17    protected $URLBOOTSTRAP;
18
19    protected $URLJQUERY;
20
21    protected $URLJQUERYUI;
22
23    protected $URLJATIMEPICKER;
24
25    protected $URLCHARTJS;
26
27    protected $URLJQCLOUD;
28
29    protected $LOCALE;
30
31    protected $MAXAGE;
32
33    final public function getDbUser() {
34        return $this->DBUSER;
35    }
36
37    final public function getDbPwd() {
38        return $this->DBPWD;
39    }
40
41    final public function getDbName() {
42        return $this->DBNAME;
43    }
44
45    final public function getDbHost() {
46    return $this->DBHOST;
47    }
48
49    final public function getUrlBootstrap() {
50        return $this->URLBOOTSTRAP;
51    }
52
53    final public function getUrlJquery() {
54        return $this->URLJQUERY;
55    }
56
57    final public function getUrlJqueryui() {
58        return $this->URLJQUERYUI;
59    }
60
61    final public function getUrlJAtimepicker() {
62        return $this->URLJATIMEPICKER;
63    }
64
65    final public function getUrlChartjs() {
66        return $this->URLCHARTJS;
67    }
68
69    final public function getUrlJQCloud() {
70        return $this->URLJQCLOUD;
71    }
72
73    final public function getLocale() {
74        return $this->LOCALE;
75    }
76
77    final public function getMaxAge() {
78        return intval($this->MAXAGE);
79    }
80
81    protected function setDbUser($s) {
82        $this->DBUSER = $s;
83    }
84
85    protected function setDbPwd($s) {
86        $this->DBPWD = $s;
87    }
88
89    protected function setDbname($s) {
90        $this->DBNAME = $s;
91    }
92
93    protected function setDbHost($s) {
94    $this->DBHOST = $s;
95    }
96
97    protected function setUrlBootstrap($s) {
98        $this->URLBOOTSTRAP = $s;
99    }
100
101    protected function setUrlJquery($s) {
102        $this->URLJQUERY = $s;
103    }
104
105    protected function setUrlJqueryui($s) {
106        $this->URLJQUERYUI = $s;
107    }
108
109    protected function setUrlJAtimepicker($s) {
110        $this->URLJATIMEPICKER = $s;
111    }
112
113    protected function setUrlChartjs($s) {
114        $this->URLCHARTJS = $s;
115    }
116
117    protected function setUrlJQCloud($s) {
118        $this->URLJQCLOUD = $s;
119    }
120
121    protected function setLocale($s) {
122        $this->LOCALE = $s;
123    }
124
125    protected function setMaxAge($i) {
126        $this->MAXAGE = intval($i);
127    }
128
129} // class