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

ManagerApplication   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 16 1
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