Passed
Push — v2 ( 9af0d6...678d0b )
by Brice
03:00 queued 29s
created

Console   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 18
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 16 1
1
<?php
2
3
namespace JobQueue\Application\Manager;
4
5
use Symfony\Component\Console\Application;
6
use Symfony\Component\Console\Command\ListCommand;
7
8
final class Console extends Application
9
{
10
    public function __construct()
11
    {
12
        parent::__construct('manager', 1.0);
13
14
        $manCommand = new ListCommand;
15
        $manCommand->setName('man');
16
17
        $this->add($manCommand);
18
        $this->add(new ListTasks);
19
        $this->add(new AddTask);
20
        $this->add(new ShowTask);
21
        $this->add(new EditTask);
22
        $this->add(new DeleteTask);
23
        $this->add(new RestoreTasks);
24
        $this->add(new FlushTasks);
25
        $this->setDefaultCommand('man');
26
    }
27
}
28