Completed
Pull Request — master (#5)
by David
02:09
created

CommandProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 18
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCommands() 0 9 1
1
<?php
2
3
4
namespace TheCodingMachine\Discovery\Commands;
5
6
use Composer\Plugin\Capability\CommandProvider as CommandProviderCapability;
7
8
/**
9
 * List of all commands provided by this package.
10
 */
11
class CommandProvider implements CommandProviderCapability
12
{
13
14
    /**
15
     * Retrieves an array of commands
16
     *
17
     * @return \Composer\Command\BaseCommand[]
18
     */
19
    public function getCommands()
20
    {
21
        return [
22
            new ListAssetTypesCommand(),
23
            new DumpCommand(),
24
            new AddAssetCommand(),
25
            new RemoveAssetCommand(),
26
        ];
27
    }
28
}
29