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

ScheduledCommandHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 1
cbo 4
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 handleScheduledCommand() 0 6 1
1
<?php
2
3
namespace MGDigital\BusQue\Handler;
4
5
use MGDigital\BusQue\ScheduledCommand;
6
7
class ScheduledCommandHandler extends AbstractHandler
8
{
9
10 1
    public function handleScheduledCommand(ScheduledCommand $command)
11
    {
12 1
        list($queueName, $id, $serialized) = $this->process($command);
13 1
        $this->implementation->getSchedulerAdapter()
14 1
            ->scheduleCommand($queueName, $id, $serialized, $command->getDateTime());
15 1
    }
16
}
17