ManagerCommand::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
ccs 0
cts 3
cp 0
cc 1
eloc 2
nc 1
nop 2
crap 2
1
<?php
2
3
namespace JobQueue\Application\Console;
4
5
use JobQueue\Domain\Task\Queue;
6
use Symfony\Component\Console\Command\Command;
7
8
abstract class ManagerCommand extends Command
9
{
10
    /**
11
     *
12
     * @var Queue
13
     */
14
    protected $queue;
15
16
    /**
17
     *
18
     * @param Queue  $queue
19
     * @param string $name
20
     */
21
    public function __construct(Queue $queue, string $name = null)
22
    {
23
        $this->queue = $queue;
24
25
        parent::__construct($name);
26
    }
27
}
28