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

CommandProvider::getCommands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
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
        ];
25
    }
26
}