Completed
Push — master ( 444b50...ece018 )
by Gábor
03:00
created

ReleasePlugin::getCapabilities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the egabor/composer-release-plugin package.
5
 *
6
 * (c) Gábor Egyed <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace egabor\Composer\ReleasePlugin;
13
14
use Composer\Composer;
15
use Composer\IO\IOInterface;
16
use Composer\Plugin\Capability\CommandProvider;
17
use Composer\Plugin\Capable;
18
use Composer\Plugin\PluginInterface;
19
use egabor\Composer\ReleasePlugin\Command\ReleaseCommand;
20
21
/**
22
 * @author Gábor Egyed <[email protected]>
23
 */
24
class ReleasePlugin implements Capable, CommandProvider, PluginInterface
25
{
26
    public function activate(Composer $composer, IOInterface $io)
27
    {
28
    }
29
30
    public function getCapabilities()
31
    {
32
        return [
33
            CommandProvider::class => __CLASS__,
34
        ];
35
    }
36
37
    public function getCommands()
38
    {
39
        return [
40
            new ReleaseCommand(),
41
        ];
42
    }
43
}
44