Completed
Pull Request — master (#604)
by Greg
02:48
created

RoboTestPluginCommands   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testHello() 0 4 1
1
<?php
2
3
namespace Robo\RoboPlugin\Commands;
4
5
use Psr\Log\LoggerAwareTrait;
6
use Psr\Log\LoggerAwareInterface;
7
8
use Consolidation\AnnotatedCommand\Events\CustomEventAwareInterface;
9
use Consolidation\AnnotatedCommand\Events\CustomEventAwareTrait;
10
use Consolidation\OutputFormatters\StructuredData\PropertyList;
11
use Robo\Contract\VerbosityThresholdInterface;
12
use Symfony\Component\Console\Output\OutputInterface;
13
14
/**
15
 * Example Robo plugin commandfile
16
 */
17
class RoboTestPluginCommands extends \Robo\Tasks implements LoggerAwareInterface, CustomEventAwareInterface
18
{
19
    use LoggerAwareTrait;
20
    use CustomEventAwareTrait;
21
22
    /**
23
     * @command test:hello
24
     */
25
    public function testHello(array $a)
26
    {
27
        $this->say("Hello to: " . implode(',', $a));
28
    }
29
}
30