Passed
Push — master ( a357e7...195a07 )
by Anton
04:22 queued 01:11
created

Addons::loader()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Modules\Extend\Utils\Extension {
4
5
	use Modules\Extend;
6
7
	abstract class Addons extends Extend\Utils\Extension {
8
9
		# Create new loader
10
11
		public static function loader(bool $load_all = true) {
12
13
			return new static::$loader_class($load_all);
14
		}
15
16
		# Init add-ons list
17
18
		public static function init() {
19
20
			static::$loader = new static::$loader_class(false);
21
		}
22
	}
23
}
24