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

RoboTestPluginCommands::testHello()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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