Completed
Push — master ( 0b4c0a...f06a3d )
by Adam
14:19
created

QueuedCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 23
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 3
    public function __construct($command)
16
    {
17 3
        $this->command = $command;
18 3
    }
19
20
    /**
21
     * @return object
22
     */
23 2
    public function command()
24
    {
25 2
        return $this->command;
26
    }
27
}
28