module_base   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 97
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 97
ccs 20
cts 20
cp 1
rs 10
c 0
b 0
f 0
wmc 10
lcom 0
cbo 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A get_allowed_columns() 0 4 1
A get_name() 0 4 1
A get_image() 0 4 1
A get_language() 0 4 1
A get_template_side() 0 4 1
A get_template_center() 0 4 1
A get_template_acp() 0 4 1
A install() 0 4 1
A uninstall() 0 4 1
A can_multi_include() 0 4 1
1
<?php
2
/**
3
*
4
* @package Board3 Portal v2.1
5
* @copyright (c) 2013 Board3 Group ( www.board3.de )
6
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
7
*
8
*/
9
10
namespace board3\portal\modules;
11
12
/**
13
* @package module_base
14
*/
15
class module_base implements module_interface
16
{
17
	/** @var int Module's allowed columns */
18
	protected $columns;
19
20
	/** @var string Module name */
21
	protected $name;
22
23
	/** @var string Module image source */
24
	protected $image_src;
25
26
	/** @var string Module language file */
27
	protected $language;
28
29
	/** @var bool Can include this module multiple times */
30
	protected $multiple_includes = false;
31
32
	/**
33
	* {@inheritdoc}
34
	*/
35 13
	public function get_allowed_columns()
36
	{
37 13
		return $this->columns;
38
	}
39
40
	/**
41
	* {@inheritdoc}
42
	*/
43 1
	public function get_name()
44
	{
45 1
		return $this->name;
46
	}
47
48
	/**
49
	* {@inheritdoc}
50
	*/
51 1
	public function get_image()
52
	{
53 1
		return $this->image_src;
54
	}
55
56
	/**
57
	* {@inheritdoc}
58
	*/
59 5
	public function get_language()
60
	{
61 5
		return $this->language;
62
	}
63
64
	/**
65
	* {@inheritdoc}
66
	*/
67 1
	public function get_template_side($module_id)
68
	{
69 1
		return;
70
	}
71
72
	/**
73
	* {@inheritdoc}
74
	*/
75 1
	public function get_template_center($module_id)
76
	{
77 1
		return;
78
	}
79
80
	/**
81
	* {@inheritdoc}
82
	*/
83 1
	public function get_template_acp($module_id)
84
	{
85 1
		return array();
86
	}
87
88
	/**
89
	* {@inheritdoc}
90
	*/
91 1
	public function install($module_id)
92
	{
93 1
		return true;
94
	}
95
96
	/**
97
	* {@inheritdoc}
98
	*/
99 1
	public function uninstall($module_id, $db)
100
	{
101 1
		return true;
102
	}
103
104
	/**
105
	 * {@inheritdoc}
106
	 */
107 1
	public function can_multi_include()
108
	{
109 1
		return $this->multiple_includes;
110
	}
111
}
112