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

Console::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 12
nc 1
nop 0
dl 0
loc 16
ccs 0
cts 13
cp 0
crap 2
rs 9.4285
c 0
b 0
f 0
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