CommandProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 13
ccs 0
cts 9
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCommands() 0 8 1
1
<?php
2
/**
3
 * Plugins Management
4
 * @author Joe Huss <[email protected]>
5
 * @copyright 2019
6
 * @package MyAdmin
7
 * @category Plugins
8
 */
9
10
namespace MyAdmin\Plugins;
11
12
use Composer\Plugin\Capability\CommandProvider as CommandProviderCapability;
13
use MyAdmin\Plugins\Command\Command;
14
use MyAdmin\Plugins\Command\Parse;
15
use MyAdmin\Plugins\Command\CreateUser;
16
use MyAdmin\Plugins\Command\UpdatePlugins;
17
use MyAdmin\Plugins\Command\SetPermissions;
18
19
/**
20
 * Class CommandProvider
21
 *
22
 * @package MyAdmin\Plugins
23
 */
24
class CommandProvider implements CommandProviderCapability
25
{
26
	/**
27
	 * @return array
28
	 */
29
	public function getCommands()
30
	{
31
		return [
32
			new Command,
33
			new Parse,
34
			new CreateUser,
35
			new UpdatePlugins,
36
			new SetPermissions
37
		];
38
	}
39
}
40