Passed
Branch master (a01aa4)
by Mike
03:32
created

QueuedCommandHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handleQueuedCommand() 0 6 1
1
<?php
2
3
namespace MGDigital\BusQue\Handler;
4
5
use MGDigital\BusQue\QueuedCommand;
6
7
class QueuedCommandHandler extends AbstractHandler
8
{
9
10 2
    public function handleQueuedCommand(QueuedCommand $command)
11
    {
12 2
        list($queueName, $id, $serialized) = $this->process($command);
13 2
        $this->implementation->getQueueAdapter()
14 2
            ->queueCommand($queueName, $id, $serialized);
15 2
    }
16
}
17