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

CommandProvider::getCommands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 9
rs 9.6666
c 1
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
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