QueuedCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 25
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 getCommand() 0 4 1
1
<?php
2
3
namespace League\Tactician\Bernard;
4
5
use Bernard\Message;
6
7
/**
8
 * Indicates the command has been queued or not
9
 */
10
final class QueuedCommand
11
{
12
    /**
13
     * @var Message
14
     */
15
    private $command;
16
17
    /**
18
     * @param Message $command
19
     */
20 7
    public function __construct(Message $command)
21
    {
22 7
        $this->command = $command;
23 7
    }
24
25
    /**
26
     * Returns the wrapped command
27
     *
28
     * @return Message
29
     */
30 3
    public function getCommand()
31
    {
32 3
        return $this->command;
33
    }
34
}
35