ProjectTestCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 21
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A execute() 0 3 1
A configure() 0 12 1
1
<?php
2
3
namespace App\Project\Console;
4
5
use Symfony\Component\Console\Command\Command;
6
use Symfony\Component\Console\Input\InputInterface;
7
use Symfony\Component\Console\Output\OutputInterface;
8
9
class ProjectTestCommand extends Command
10
{
11
12
    protected function configure()
13
    {
14
        $this
15
            // the name of the command (the part after "bin/console")
16
            ->setName('hello:project')
17
18
            // the short description shown while running "php bin/console list"
19
            ->setDescription('Echo hello project')
20
21
            // the full command description shown when running the command with
22
            // the "--help" option
23
            ->setHelp('This command allows you to write hello project to screen')
24
        ;
25
    }
26
27
    public function execute(InputInterface $input, OutputInterface $output)
28
    {
29
        $output->writeln('Hello Project');
30
    }
31
}