Passed
Push — v2 ( f057b3...2fc3c9 )
by Brice
05:19
created

ManagerApplication::__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
dl 0
loc 16
ccs 0
cts 13
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 12
nc 1
nop 0
crap 2
1
<?php
2
3
namespace JobQueue\Application\Console;
4
5
use Symfony\Component\Console\Application;
6
use Symfony\Component\Console\Command\ListCommand;
7
8
final class ManagerApplication 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