QueuedCommand::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Equip\Queue;
4
5
final class QueuedCommand
6
{
7
    /**
8
     * @var object
9
     */
10
    private $command;
11
12
    /**
13
     * @param object $command
14
     */
15 8
    public function __construct($command)
16
    {
17 8
        $this->command = $command;
18 8
    }
19
20
    /**
21
     * @return object
22
     */
23 4
    public function command()
24
    {
25 4
        return $this->command;
26
    }
27
}
28