Passed
Push — master ( 289cbe...3ce129 )
by Anton
03:29
created

Addons   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLoader() 0 4 1
A init() 0 4 1
1
<?php
2
3
/**
4
 * @package Cadmium\System\Modules\Extend
5
 * @author Anton Romanov
6
 * @copyright Copyright (c) 2015-2017, Anton Romanov
7
 * @link http://cadmium-cms.com
8
 */
9
10
namespace Modules\Extend\Utils\Extension {
11
12
	use Modules\Extend;
13
14
	abstract class Addons extends Extend\Utils\Extension {
15
16
		/**
17
		 * Get a loader object
18
		 */
19
20
		public static function getLoader(bool $load_all = true) : Extend\Utils\Loader\Addons {
21
22
			return new static::$loader_class($load_all);
23
		}
24
25
		/**
26
		 * Initialize the add-ons list
27
		 */
28
29
		public static function init() {
30
31
			static::$loader = new static::$loader_class(false);
32
		}
33
	}
34
}
35