QueuedCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 23
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0
ccs 5
cts 5
cp 1
rs 10

2 Methods

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