Plugin::getCapabilities()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zalas\Symfify\Composer;
6
7
use Composer\Composer;
8
use Composer\IO\IOInterface;
9
use Composer\Plugin\Capability\CommandProvider as CapabilityCommandProvider;
10
use Composer\Plugin\Capable;
11
use Composer\Plugin\PluginInterface;
12
13
class Plugin implements PluginInterface, Capable
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function activate(Composer $composer, IOInterface $io)
19
    {
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25 1
    public function getCapabilities()
26
    {
27
        return [
28 1
            CapabilityCommandProvider::class => CommandProvider::class,
29
        ];
30
    }
31
}
32