Application::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 8
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Tarantool\JobQueue\Console;
4
5
use Symfony\Component\Console\Application as BaseApplication;
6
use Tarantool\JobQueue\Console\Command\KickCommand;
7
use Tarantool\JobQueue\Console\Command\PutCommand;
8
use Tarantool\JobQueue\Console\Command\RunCommand;
9
use Tarantool\JobQueue\Console\Command\StatsCommand;
10
use Tarantool\JobQueue\Console\Command\TruncateCommand;
11
12
class Application extends BaseApplication
13
{
14
    private const VERSION = '0.x-DEV';
15
16
    public function __construct()
17
    {
18
        parent::__construct('Tarantool JobQueue', self::VERSION);
19
20
        $this->add(new KickCommand());
21
        $this->add(new PutCommand());
22
        $this->add(new RunCommand());
23
        $this->add(new StatsCommand());
24
        $this->add(new TruncateCommand());
25
    }
26
}
27